From 2368823bb10d874ff8a99f078c38b186e5dab1d7 Mon Sep 17 00:00:00 2001 From: Paul Kaplan <pkaplan@media.mit.edu> Date: Wed, 23 May 2018 15:01:03 -0400 Subject: [PATCH] Force the tooltips to close to fix touch devices --- src/components/action-menu/action-menu.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/action-menu/action-menu.jsx b/src/components/action-menu/action-menu.jsx index 09af880cf..69d154fcc 100644 --- a/src/components/action-menu/action-menu.jsx +++ b/src/components/action-menu/action-menu.jsx @@ -66,6 +66,7 @@ class ActionMenu extends React.Component { handleTouchOutside (e) { if (this.state.isOpen && !this.containerRef.contains(e.target)) { this.setState({isOpen: false}); + ReactTooltip.hide(); } } clickDelayer (fn) { @@ -74,6 +75,7 @@ class ActionMenu extends React.Component { // for now all this work is to ensure the menu closes BEFORE the // (possibly slow) action is started. return event => { + ReactTooltip.hide(); this.setState({forceHide: true, isOpen: false}, () => { if (fn) fn(event); setTimeout(() => this.setState({forceHide: false})); -- GitLab