Skip to content

Commit

Permalink
fix(Combobox): clear selected option when query changes
Browse files Browse the repository at this point in the history
  • Loading branch information
talkor committed Mar 18, 2024
1 parent e0c1140 commit 0f77457
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/components/Combobox/Combobox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ const Combobox: React.FC<ComboboxProps> & {
const [filterValue, setFilterValue] = useState(defaultFilterValue);
const onChangeCallback = useCallback(
(value: string) => {
setActiveOptionIndex(-1);
if (onFilterChanged) {
onFilterChanged(value);
}
Expand Down

0 comments on commit 0f77457

Please sign in to comment.