mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 18:33:33 +00:00
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 />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue