Skip to content

Commit

Permalink
InputValue if more elegant
Browse files Browse the repository at this point in the history
  • Loading branch information
yuri-sakharov committed Dec 17, 2017
1 parent ae26bf8 commit 6c15260
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -839,12 +839,12 @@ class Select extends React.Component {
&& this.state.isFocused
&& !this.state.inputValue
});
let value;

let value = this.state.inputValue;
if (!this.props.onSelectResetsInput && !this.state.isFocused){
value= '';
} else {
value = this.state.inputValue;
}

const inputProps = {
...this.props.inputProps,
role: 'combobox',
Expand Down

0 comments on commit 6c15260

Please sign in to comment.