mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-11 15:28:00 +00:00
This reverts commit 81635db28a26e8a2a4b61a85f888e3433c72cd48.
This commit is contained in:
parent
7d7bc5b48b
commit
663e7f4c50
@ -286,13 +286,6 @@ const AsyncSelectList: FC<AsyncSelectListProps & SelectProps> = ({
|
||||
onChange?.(selectedValues);
|
||||
};
|
||||
|
||||
const handleDropdownChange = (open: boolean) => {
|
||||
if (!open) {
|
||||
// Close the form when the dropdown closes
|
||||
onCancel && onCancel();
|
||||
}
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
loadOptions('');
|
||||
}, []);
|
||||
@ -321,7 +314,6 @@ const AsyncSelectList: FC<AsyncSelectListProps & SelectProps> = ({
|
||||
style={{ width: '100%' }}
|
||||
tagRender={customTagRender}
|
||||
onChange={handleChange}
|
||||
onDropdownVisibleChange={handleDropdownChange}
|
||||
onInputKeyDown={(event) => {
|
||||
if (event.key === 'Backspace') {
|
||||
return event.stopPropagation();
|
||||
|
||||
@ -267,13 +267,6 @@ const TreeAsyncSelectList: FC<Omit<AsyncSelectListProps, 'fetchOptions'>> = ({
|
||||
}
|
||||
}, 300);
|
||||
|
||||
const handleDropdownChange = (open: boolean) => {
|
||||
if (!open) {
|
||||
// Close the form when the dropdown closes
|
||||
onCancel && onCancel();
|
||||
}
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
if (glossaries.length) {
|
||||
expandableKeys.current = glossaries.map((glossary) => glossary.id);
|
||||
@ -334,7 +327,6 @@ const TreeAsyncSelectList: FC<Omit<AsyncSelectListProps, 'fetchOptions'>> = ({
|
||||
treeData={treeData}
|
||||
treeExpandedKeys={isEmpty(searchOptions) ? undefined : expandedRowKeys}
|
||||
onChange={handleChange}
|
||||
onDropdownVisibleChange={handleDropdownChange}
|
||||
onSearch={onSearch}
|
||||
onTreeExpand={setExpandedRowKeys}
|
||||
{...props}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user