Skip to content

Commit

Permalink
Merge 99e21e3 into d6f1664
Browse files Browse the repository at this point in the history
  • Loading branch information
benjycui committed Nov 8, 2016
2 parents d6f1664 + 99e21e3 commit ca56d80
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Select.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,10 @@ const Select = React.createClass({
}
},

onInputBlur() {
this.setState({ open: false });
},

onMenuSelect({ item }) {
let value = this.state.value;
const props = this.props;
Expand Down Expand Up @@ -486,6 +490,7 @@ const Select = React.createClass({
ref={this.saveInputRef}
onChange={this.onInputChange}
onKeyDown={this.onInputKeyDown}
onBlur={this.onInputBlur}
value={this.state.inputValue}
disabled={props.disabled}
className={`${props.prefixCls}-search__field`}
Expand Down

0 comments on commit ca56d80

Please sign in to comment.