Skip to content

Commit

Permalink
Removed check multi in inputValue if
Browse files Browse the repository at this point in the history
  • Loading branch information
yuri-sakharov committed Dec 17, 2017
1 parent 8de1ef6 commit d526036
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 @@ -841,8 +841,8 @@ class Select extends React.Component {
});

let value = this.state.inputValue;
if (value && !this.props.multi && !this.props.onSelectResetsInput && !this.state.isFocused){
// it's for single select because need to hide input value when not focused, not reset on select
if (value && !this.props.onSelectResetsInput && !this.state.isFocused){
// it hides input value when it is not focused and was not reset on select
value= '';
}

Expand Down

0 comments on commit d526036

Please sign in to comment.