|
@@ -92,6 +92,7 @@ export default class SearchTypeahead extends React.Component {
|
|
|
|
|
|
|
|
onInputChange(text) {
|
|
onInputChange(text) {
|
|
|
this.setState({input: text});
|
|
this.setState({input: text});
|
|
|
|
|
+ this.props.onInputChange(text);
|
|
|
if (text === '') {
|
|
if (text === '') {
|
|
|
this.setState({pages: []});
|
|
this.setState({pages: []});
|
|
|
}
|
|
}
|
|
@@ -186,6 +187,7 @@ SearchTypeahead.propTypes = {
|
|
|
onSearchError: PropTypes.func,
|
|
onSearchError: PropTypes.func,
|
|
|
onChange: PropTypes.func,
|
|
onChange: PropTypes.func,
|
|
|
onSubmit: PropTypes.func,
|
|
onSubmit: PropTypes.func,
|
|
|
|
|
+ onInputChange: PropTypes.func,
|
|
|
emptyLabel: PropTypes.string,
|
|
emptyLabel: PropTypes.string,
|
|
|
placeholder: PropTypes.string,
|
|
placeholder: PropTypes.string,
|
|
|
keywordOnInit: PropTypes.string,
|
|
keywordOnInit: PropTypes.string,
|