Skip to content

Commit

Permalink
call callback on state changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Sekhmet committed May 24, 2016
1 parent 824ac3a commit ca557da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/DropDownMenu/DropDownMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,12 @@ class DropDownMenu extends Component {
};

handleItemTouchTap = (event, child, index) => {
if (this.props.onChange !== undefined) {
this.props.onChange(event, index, child.props.value);
}

this.setState({
open: false,
}, () => {
if (this.props.onChange) {
this.props.onChange(event, index, child.props.value);
}
});
};

Expand Down

0 comments on commit ca557da

Please sign in to comment.