mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
Add change action to search clear button (#176)
This commit is contained in:
@@ -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 New Issue
Block a user