From 2c1ca27983d4b40a2270533a75b282212ac2dd43 Mon Sep 17 00:00:00 2001 From: Johannes Kettmann Date: Fri, 26 Aug 2016 19:41:55 +0200 Subject: [PATCH] Set the touch flag in FloatingActionButton also in handleTouchEnd --- src/FloatingActionButton/FloatingActionButton.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/FloatingActionButton/FloatingActionButton.js b/src/FloatingActionButton/FloatingActionButton.js index 56bac099c96cc6..57157977e0d384 100644 --- a/src/FloatingActionButton/FloatingActionButton.js +++ b/src/FloatingActionButton/FloatingActionButton.js @@ -215,7 +215,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); }