Add change action to search clear button (#176)

This commit is contained in:
jeffvli 2023-07-19 01:32:55 -07:00
parent 1ec70bfa78
commit 4e4eca14ec

View file

@ -46,6 +46,7 @@ export const SearchInput = ({
onClick={() => {
ref.current.value = '';
ref.current.focus();
onChange?.({ target: { value: '' } } as ChangeEvent<HTMLInputElement>);
}}
>
<RiCloseFill />