Skip to content

Commit

Permalink
Adding strict type check
Browse files Browse the repository at this point in the history
  • Loading branch information
JedWatson committed Dec 20, 2015
1 parent abfb4e8 commit 90d4ad7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ const Select = React.createClass({
window.scrollTo(0, window.scrollY + menuContainerRect.bottom + this.props.menuBuffer - window.innerHeight);
}
}
if (prevProps.disabled != this.props.disabled) {
this.setState({isFocused: false})
if (prevProps.disabled !== this.props.disabled) {
this.setState({ isFocused: false });
}
},

Expand Down

0 comments on commit 90d4ad7

Please sign in to comment.