✨(react) add onSearchInputChange callback to searchable select
We want to be able to notify an event when the search term of the searchable select gets updated.
This commit is contained in:
@@ -93,6 +93,10 @@ export const SelectMonoSearchable = forwardRef<SelectHandle, SubProps>(
|
||||
},
|
||||
}));
|
||||
|
||||
useEffect(() => {
|
||||
props.onSearchInputChange?.({ target: { value: inputFilter } });
|
||||
}, [inputFilter]);
|
||||
|
||||
const onInputBlur = () => {
|
||||
setHasInputFocused(false);
|
||||
if (downshiftReturn.selectedItem) {
|
||||
|
||||
Reference in New Issue
Block a user