Skip to content

Commit

Permalink
clear query and reset options
Browse files Browse the repository at this point in the history
  • Loading branch information
kyledurand committed Mar 25, 2024
1 parent 9d79ef1 commit 095f8e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion polaris-react/src/components/Picker/Picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,10 @@ export function Picker({
const handleBlur = useCallback(() => {
if (popoverActive) {
handleClose();
setQuery('');
setFilteredOptions(options);
}
}, [popoverActive, handleClose]);
}, [popoverActive, handleClose, options]);

const textFieldContextValue: ComboboxTextFieldType = useMemo(
() => ({
Expand Down

0 comments on commit 095f8e1

Please sign in to comment.