Skip to content

Commit

Permalink
Merge pull request #77 from comicrelief/GP-774_postcode_without_space
Browse files Browse the repository at this point in the history
fix: Disable results filter
  • Loading branch information
NoelLH authored Oct 26, 2017
2 parents 4325c66 + 8ea6bcd commit 398d1b3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/SchoolsLookUp/SchoolsLookUp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 });
}

/**
Expand Down Expand Up @@ -328,7 +329,6 @@ class SchoolsLookUp extends Component {
) {
return <div />;
}

const MenuHeader = props => <li {...props} className={isDefaultOptionHighlighted ? 'default-selection' : ''} />;
return (
<Menu {...menuProps}>
Expand Down Expand Up @@ -399,6 +399,7 @@ class SchoolsLookUp extends Component {
options={options}
useCache={false}
disabled={disabled}
filterBy={() => true}
/>
{isSearching ?
<Icon name="spinner" spin />:
Expand Down

0 comments on commit 398d1b3

Please sign in to comment.