mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: add configYamlFormat & fix bugs
This commit is contained in:
1 parent
4ccb838a06
commit
3f37b02b79
5 files changed
+167
-114
No files matched your search
@@ -128,8 +128,10 @@ const AutoComplete = forwardRef(function Impl<T>(props: AutoCompleteProps<T>, re
|
||||
else onChange(selectedKeys.join(','));
|
||||
};
|
||||
|
||||
let first = !multi;
|
||||
useEffect(() => {
|
||||
dispatchChange();
|
||||
if (first) first = false;
|
||||
else dispatchChange();
|
||||
const ids = [];
|
||||
for (const key of selectedKeys) if (!valueCache[key]) ids.push(key);
|
||||
if (!ids.length) return;
|
||||
|
||||
Reference in new issue
Block a user