Skip to content

Commit

Permalink
Clear input when select value
Browse files Browse the repository at this point in the history
  • Loading branch information
poulch committed Jul 2, 2024
1 parent 38e0148 commit 39a0917
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Combobox/Common/useCombobox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export const useCombobox = <T extends Option, V extends string | Option>({
const selectedValue = isValuePassedAsString
? selectedItem.value
: selectedItem;
setInputValue("");
onChange?.(selectedValue as V);
}
},
Expand Down

0 comments on commit 39a0917

Please sign in to comment.