mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
Add change action to search clear button (#176)
This commit is contained in:
@@ -46,6 +46,7 @@ export const SearchInput = ({
|
||||
onClick={() => {
|
||||
ref.current.value = '';
|
||||
ref.current.focus();
|
||||
onChange?.({ target: { value: '' } } as ChangeEvent<HTMLInputElement>);
|
||||
}}
|
||||
>
|
||||
<RiCloseFill />
|
||||
|
||||
Reference in New Issue
Block a user