updated fix

This commit is contained in:
TaruunMalik 2025-04-15 08:14:39 +00:00
parent 9d2c74c028
commit 91a2bc00df
2 changed files with 3 additions and 5 deletions

View file

@ -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);
}}

View file

@ -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('');
}
};