mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 01:18:23 +00:00
input issue fix
This commit is contained in:
parent
e381c75866
commit
9d2c74c028
2 changed files with 3 additions and 0 deletions
|
|
@ -486,12 +486,14 @@ export const DropdownV2 = ({
|
|||
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('');
|
||||
}
|
||||
setIsMenuOpen(false);
|
||||
setUserInteracted(true);
|
||||
|
|
|
|||
|
|
@ -162,6 +162,7 @@ export const MultiselectV2 = ({
|
|||
|
||||
fireEvent('onSelect');
|
||||
setUserInteracted(true);
|
||||
setSearchInputValue('');
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue