Add change action to search clear button (#176)
This commit is contained in:
parent
1ec70bfa78
commit
4e4eca14ec
1 changed files with 1 additions and 0 deletions
|
@ -46,6 +46,7 @@ export const SearchInput = ({
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
ref.current.value = '';
|
ref.current.value = '';
|
||||||
ref.current.focus();
|
ref.current.focus();
|
||||||
|
onChange?.({ target: { value: '' } } as ChangeEvent<HTMLInputElement>);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<RiCloseFill />
|
<RiCloseFill />
|
||||||
|
|
Reference in a new issue