Skip to content

Commit

Permalink
Merge branch 'rennerDa-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed Sep 4, 2017
2 parents a93ddcc + 1bba1aa commit 5ca9c70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/filters/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class SelectFilter extends Component {
};
}

componentWillReceiveProps(nextProps) {
const isPlaceholderSelected = (nextProps.defaultValue === undefined ||
!nextProps.options.hasOwnProperty(nextProps.defaultValue));
componentWillReceiveProps() {
const currentSelectValue = this.refs.selectInput.value;
const isPlaceholderSelected = !currentSelectValue || currentSelectValue === '';
this.setState(() => {
return {
isPlaceholderSelected
Expand Down

0 comments on commit 5ca9c70

Please sign in to comment.