From 8ea6bcda9cb0d8a8ab417ddf5e6f6ee0b9f85399 Mon Sep 17 00:00:00 2001 From: Mohamed Labib Date: Thu, 26 Oct 2017 17:57:01 +0200 Subject: [PATCH] fix: Disable results filter --- src/components/SchoolsLookUp/SchoolsLookUp.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/SchoolsLookUp/SchoolsLookUp.js b/src/components/SchoolsLookUp/SchoolsLookUp.js index 7cf91f5e..a0593319 100644 --- a/src/components/SchoolsLookUp/SchoolsLookUp.js +++ b/src/components/SchoolsLookUp/SchoolsLookUp.js @@ -152,8 +152,8 @@ class SchoolsLookUp extends Component { /** * Handle change event. - * @param {object} event * @param {string} identifier + * @param {object} event */ handleManual(identifier, event) { const { onChange, establishmentIdIdentifier, @@ -181,9 +181,10 @@ class SchoolsLookUp extends Component { /** * Handle changing text value inside search box + * @param {string} query */ - handleInputChange() { - this.setState({ isDefaultOptionHighlighted: true }); + handleInputChange(query) { + this.setState({ query, isDefaultOptionHighlighted: true }); } /** @@ -328,7 +329,6 @@ class SchoolsLookUp extends Component { ) { return
; } - const MenuHeader = props =>
  • ; return ( @@ -399,6 +399,7 @@ class SchoolsLookUp extends Component { options={options} useCache={false} disabled={disabled} + filterBy={() => true} /> {isSearching ? :