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
|
enterButton
|
||||||
allowClear
|
allowClear
|
||||||
loading={loading}
|
loading={loading}
|
||||||
onSearch={handleSearch}
|
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
if (!e.target.value) setData([]);
|
const value = e.target.value;
|
||||||
|
if (!value) {
|
||||||
|
setData([]);
|
||||||
|
} else {
|
||||||
|
handleSearch(value);
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</AutoComplete>
|
</AutoComplete>
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ export default function GlobalSearch() {
|
|||||||
enterButton
|
enterButton
|
||||||
allowClear
|
allowClear
|
||||||
loading={loading}
|
loading={loading}
|
||||||
onSearch={handleSearch}
|
onChange={(e) => handleSearch(e.target.value)}
|
||||||
/>
|
/>
|
||||||
</AutoComplete>
|
</AutoComplete>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user