Skip to content

Commit

Permalink
fix(Combobox): clear selected option when query changes (#2020)
Browse files Browse the repository at this point in the history
  • Loading branch information
talkor authored Mar 18, 2024
1 parent b2b1e06 commit fe83d89
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 fe83d89

Please sign in to comment.