mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 09:38:19 +08:00
ui: fix autocomplete
This commit is contained in:
1 parent
4c6aeeb914
commit
329d047699
3 files changed
+7
-1
No files matched your search
@@ -98,6 +98,7 @@ const AutoComplete = forwardRef(function AutoComplete(props, ref) {
|
||||
inputRef.current.value = '';
|
||||
inputRef.current.focus();
|
||||
} else {
|
||||
setSelected([item]);
|
||||
inputRef.current.value = itemKey(item);
|
||||
dispatchChange();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user