Skip to content

Commit

Permalink
Changed this.props.onSelectResetsInput to nextProps.onSelectResetsInput
Browse files Browse the repository at this point in the history
  • Loading branch information
yuri-sakharov committed Dec 17, 2017
1 parent b826140 commit ae26bf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class Select extends React.Component {
this.setState({ required: false });
}

if (this.state.inputValue && this.props.value !== nextProps.value && this.props.onSelectResetsInput) {
if (this.state.inputValue && this.props.value !== nextProps.value && nextProps.onSelectResetsInput) {
this.setState({ inputValue: this.handleInputValueChange('') });
}
}
Expand Down

0 comments on commit ae26bf8

Please sign in to comment.