mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-26 01:46:18 -05:00
Clearing search manually.
This commit is contained in:
parent
c23b014add
commit
94f6d2347b
1 changed files with 1 additions and 1 deletions
|
|
@ -508,7 +508,7 @@ export function SearchInput({initValue, onSubmit, size}) {
|
|||
const buttonClick = () => {
|
||||
// Clear the input when the "clear" button is clicked, search again.
|
||||
setValue('');
|
||||
onSubmit(value);
|
||||
onSubmit('');
|
||||
}
|
||||
|
||||
// Button is "search" when input is dirty, otherwise it is "clear".
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue