yusuketk 7 лет назад
Родитель
Сommit
f9bbaf2a97

+ 1 - 0
src/client/js/components/SearchForm.js

@@ -90,4 +90,5 @@ SearchForm.propTypes = {
 };
 };
 
 
 SearchForm.defaultProps = {
 SearchForm.defaultProps = {
+  onInputChange: () => {},
 };
 };

+ 1 - 1
src/client/js/components/SearchPage/SearchPageForm.js

@@ -30,7 +30,7 @@ export default class SearchPageForm extends React.Component {
     this.search(this.state.keyword);
     this.search(this.state.keyword);
   }
   }
 
 
-  onInputChange(input) {
+  onInputChange(input) { // for only submitting with button
     this.setState({keyword: input});
     this.setState({keyword: input});
   }
   }
 
 

+ 1 - 0
src/client/js/components/SearchTypeahead.js

@@ -204,4 +204,5 @@ SearchTypeahead.defaultProps = {
   emptyLabel:      null,
   emptyLabel:      null,
   placeholder:     '',
   placeholder:     '',
   keywordOnInit:   '',
   keywordOnInit:   '',
+  onInputChange: () => {},
 };
 };