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