mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 01:18:23 +00:00
updated fix
This commit is contained in:
parent
9d2c74c028
commit
91a2bc00df
2 changed files with 3 additions and 5 deletions
|
|
@ -485,16 +485,14 @@ export const DropdownV2 = ({
|
|||
onChange={(selectedOption, actionProps) => {
|
||||
if (actionProps.action === 'clear') {
|
||||
setInputValue(null);
|
||||
fireEvent('onSelect');
|
||||
setSearchInputValue('');
|
||||
}
|
||||
if (actionProps.action === 'select-option') {
|
||||
if (currentValue === selectedOption.value) {
|
||||
setInputValue(null);
|
||||
} else setInputValue(selectedOption.value);
|
||||
fireEvent('onSelect');
|
||||
setSearchInputValue('');
|
||||
}
|
||||
fireEvent('onSelect');
|
||||
setSearchInputValue('');
|
||||
setIsMenuOpen(false);
|
||||
setUserInteracted(true);
|
||||
}}
|
||||
|
|
|
|||
|
|
@ -162,7 +162,6 @@ export const MultiselectV2 = ({
|
|||
|
||||
fireEvent('onSelect');
|
||||
setUserInteracted(true);
|
||||
setSearchInputValue('');
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
|
|
@ -311,6 +310,7 @@ export const MultiselectV2 = ({
|
|||
) {
|
||||
setIsMultiselectOpen(false);
|
||||
fireEvent('onBlur');
|
||||
setSearchInputValue('');
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue