mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: judge_config: add fast input case (#413)
Co-authored-by: undefined <i@undefined.moe>
This commit is contained in:
1 parent
b3e975cf38
commit
b7cdadc255
6 files changed
+48
-8
No files matched your search
@@ -233,6 +233,7 @@ const AutoComplete = forwardRef(function Impl<T>(props: AutoCompleteProps<T>, re
|
||||
setSelectedItems: (items) => {
|
||||
setSelected(items);
|
||||
setSelectedKeys(items.map((i) => itemKey(i)));
|
||||
if (!multi && inputRef.current) inputRef.current.value = items.map((i) => itemKey(i)).join(',');
|
||||
},
|
||||
getQuery: () => inputRef.current?.value,
|
||||
setQuery: (query) => {
|
||||
|
||||
Reference in new issue
Block a user