Clearing search manually.

This commit is contained in:
Roland 2022-01-03 16:07:04 -07:00
parent c23b014add
commit 94f6d2347b
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -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".