Skip to content

Commit 5c8bc51

Browse files
Allow searching without enter key press (#589)
1 parent ce931e7 commit 5c8bc51

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/form/InputSearch.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ import PropTypes from 'prop-types';
44
export default class InputSearch extends Component {
55
handleKeyPress = event => {
66
const { search } = this.props;
7-
if (event.charCode === 13) {
8-
search(event.target.value);
9-
}
7+
search(event.target.value);
108
};
119

1210
render() {

0 commit comments

Comments
 (0)