fix search

This commit is contained in:
Bastian Ike
2020-07-17 10:00:09 +02:00
committed by Bastian
parent b93eede01d
commit ad82fe302f
9 changed files with 49 additions and 14 deletions

View File

@@ -1,6 +1,7 @@
import React, { FormEvent } from 'react';
import classNames from 'classnames';
import './search.scss';
type SearchProps = {
onClose?: () => void;
onSubmit?: () => void;
@@ -22,7 +23,7 @@ function Search({ value, onChange, onClose, open = false, onSubmit = () => {} }:
};
const handleClose = (e: React.MouseEvent) => {
// e.preventDefault();
e.preventDefault();
if (onClose != null) {
onClose();
}