Skip to content

Commit 4788635

Browse files
author
evan.henley
committed
fix: call onInputChange when value selected
1 parent 622c83e commit 4788635

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Select.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,7 @@ const Select = React.createClass({
618618
inputValue: '',
619619
focusedIndex: null
620620
}, () => {
621+
this.props.onInputChange('');
621622
this.addValue(value);
622623
});
623624
} else {
@@ -626,6 +627,7 @@ const Select = React.createClass({
626627
inputValue: '',
627628
isPseudoFocused: this.state.isFocused,
628629
}, () => {
630+
this.props.onInputChange('');
629631
this.setValue(value);
630632
});
631633
}

0 commit comments

Comments
 (0)