@@ -90,4 +90,5 @@ SearchForm.propTypes = {
};
SearchForm.defaultProps = {
+ onInputChange: () => {},
@@ -30,7 +30,7 @@ export default class SearchPageForm extends React.Component {
this.search(this.state.keyword);
}
- onInputChange(input) {
+ onInputChange(input) { // for only submitting with button
this.setState({keyword: input});
@@ -204,4 +204,5 @@ SearchTypeahead.defaultProps = {
emptyLabel: null,
placeholder: '',
keywordOnInit: '',