From fe83d89136c882d5d7e39b6272f6dc60b06c75c0 Mon Sep 17 00:00:00 2001 From: Tal Koren Date: Mon, 18 Mar 2024 15:20:28 +0200 Subject: [PATCH] fix(Combobox): clear selected option when query changes (#2020) --- packages/core/src/components/Combobox/Combobox.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/src/components/Combobox/Combobox.tsx b/packages/core/src/components/Combobox/Combobox.tsx index 06b87a7642..84de5f07aa 100644 --- a/packages/core/src/components/Combobox/Combobox.tsx +++ b/packages/core/src/components/Combobox/Combobox.tsx @@ -157,6 +157,7 @@ const Combobox: React.FC & { const [filterValue, setFilterValue] = useState(defaultFilterValue); const onChangeCallback = useCallback( (value: string) => { + setActiveOptionIndex(-1); if (onFilterChanged) { onFilterChanged(value); }