Skip to content

Commit

Permalink
Merge dca0053 into ba2212f
Browse files Browse the repository at this point in the history
  • Loading branch information
akuji1993 committed Dec 10, 2019
2 parents ba2212f + dca0053 commit d2b6dbf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,10 @@ export class Select extends Component {
!isEqual(prevProps.values, this.props.values) &&
isEqual(prevProps.values, prevState.values)
) {
this.props.onChange(this.state.values);
this.setState({
values: this.props.values
}, () => {
this.props.onChange(this.state.values);
});
this.updateSelectBounds();
}
Expand Down

0 comments on commit d2b6dbf

Please sign in to comment.