From 9d2c74c02854b0090aaf887c80f9fef750315da0 Mon Sep 17 00:00:00 2001 From: TaruunMalik Date: Tue, 15 Apr 2025 07:24:52 +0000 Subject: [PATCH] input issue fix --- frontend/src/Editor/Components/DropdownV2/DropdownV2.jsx | 2 ++ frontend/src/Editor/Components/MultiselectV2/MultiselectV2.jsx | 1 + 2 files changed, 3 insertions(+) diff --git a/frontend/src/Editor/Components/DropdownV2/DropdownV2.jsx b/frontend/src/Editor/Components/DropdownV2/DropdownV2.jsx index 15a553d316..2cb082c1b7 100644 --- a/frontend/src/Editor/Components/DropdownV2/DropdownV2.jsx +++ b/frontend/src/Editor/Components/DropdownV2/DropdownV2.jsx @@ -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); diff --git a/frontend/src/Editor/Components/MultiselectV2/MultiselectV2.jsx b/frontend/src/Editor/Components/MultiselectV2/MultiselectV2.jsx index ad02125839..a29be93aba 100644 --- a/frontend/src/Editor/Components/MultiselectV2/MultiselectV2.jsx +++ b/frontend/src/Editor/Components/MultiselectV2/MultiselectV2.jsx @@ -162,6 +162,7 @@ export const MultiselectV2 = ({ fireEvent('onSelect'); setUserInteracted(true); + setSearchInputValue(''); }; useEffect(() => {