From 91a2bc00dfbae9b7cb620e9c360c3e1fa589a14e Mon Sep 17 00:00:00 2001 From: TaruunMalik Date: Tue, 15 Apr 2025 08:14:39 +0000 Subject: [PATCH] updated fix --- frontend/src/Editor/Components/DropdownV2/DropdownV2.jsx | 6 ++---- .../src/Editor/Components/MultiselectV2/MultiselectV2.jsx | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/frontend/src/Editor/Components/DropdownV2/DropdownV2.jsx b/frontend/src/Editor/Components/DropdownV2/DropdownV2.jsx index 2cb082c1b7..544b0b85bb 100644 --- a/frontend/src/Editor/Components/DropdownV2/DropdownV2.jsx +++ b/frontend/src/Editor/Components/DropdownV2/DropdownV2.jsx @@ -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); }} diff --git a/frontend/src/Editor/Components/MultiselectV2/MultiselectV2.jsx b/frontend/src/Editor/Components/MultiselectV2/MultiselectV2.jsx index a29be93aba..a59fcb66c3 100644 --- a/frontend/src/Editor/Components/MultiselectV2/MultiselectV2.jsx +++ b/frontend/src/Editor/Components/MultiselectV2/MultiselectV2.jsx @@ -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(''); } };