Merged in feature/IO-3554-Form-Row-Layout (pull request #3051)
feature/feature/IO-3554-Form-Row-Layout - Fix search, bump deps, fix formlayout
This commit is contained in:
@@ -199,9 +199,13 @@ export default function GlobalSearchOs() {
|
||||
enterButton
|
||||
allowClear
|
||||
loading={loading}
|
||||
onSearch={handleSearch}
|
||||
onChange={(e) => {
|
||||
if (!e.target.value) setData([]);
|
||||
const value = e.target.value;
|
||||
if (!value) {
|
||||
setData([]);
|
||||
} else {
|
||||
handleSearch(value);
|
||||
}
|
||||
}}
|
||||
/>
|
||||
</AutoComplete>
|
||||
|
||||
@@ -175,7 +175,7 @@ export default function GlobalSearch() {
|
||||
enterButton
|
||||
allowClear
|
||||
loading={loading}
|
||||
onSearch={handleSearch}
|
||||
onChange={(e) => handleSearch(e.target.value)}
|
||||
/>
|
||||
</AutoComplete>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user