Skip to content

Commit

Permalink
fix: Only reset input state if list box is closed (#1074)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon authored Sep 24, 2024
1 parent c8cffaf commit dc18656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inputs/internal/ComboBoxBase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ export function ComboBoxBase<O, V extends Value>(props: ComboBoxBaseProps<O, V>)
inputValue: "",
searchValue: "",
}));
} else {
} else if (!state.isOpen) {
setFieldState((prevState) => ({
...prevState,
searchValue: "",
Expand Down

0 comments on commit dc18656

Please sign in to comment.