This commit is contained in:
Phillip Kelley-Dotson 2021-06-15 16:16:59 -07:00 committed by GitHub
parent b179863e25
commit d30f3c8149
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ export default function SearchFilter({
const [value, setValue] = useState(initialValue || ''); const [value, setValue] = useState(initialValue || '');
const handleSubmit = () => { const handleSubmit = () => {
if (value) { if (value) {
onSubmit(value); onSubmit(value.trim());
} }
}; };
const onClear = () => { const onClear = () => {