ui: add configYamlFormat & fix bugs

This commit is contained in:
panda committed 2022-05-10 01:52:52 +08:00
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;