Skip to content

Commit

Permalink
Merge pull request #5077 from jkettmann/floating_action_button_set_to…
Browse files Browse the repository at this point in the history
…uch_flag_on_touchend

[FloatingActionButton] set touch flag in handleTouchEnd
  • Loading branch information
oliviertassinari authored Oct 5, 2016
2 parents 6eb9913 + 2c1ca27 commit f981740
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/FloatingActionButton/FloatingActionButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,10 @@ class FloatingActionButton extends Component {
};

handleTouchEnd = (event) => {
this.setState({zDepth: this.props.zDepth});
this.setState({
touch: true,
zDepth: this.props.zDepth,
});
if (this.props.onTouchEnd) {
this.props.onTouchEnd(event);
}
Expand Down

0 comments on commit f981740

Please sign in to comment.