From 6a977268d03da63b5ca8ac710bc155b2b5d4eb0d Mon Sep 17 00:00:00 2001 From: Paul Kaplan <pkaplan@media.mit.edu> Date: Mon, 26 Nov 2018 13:58:06 -0500 Subject: [PATCH] Blur the action menu buttons so that they do not hold focus Fixes issue #3269 --- src/components/action-menu/action-menu.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/action-menu/action-menu.jsx b/src/components/action-menu/action-menu.jsx index 01070b27f..36cf5d444 100644 --- a/src/components/action-menu/action-menu.jsx +++ b/src/components/action-menu/action-menu.jsx @@ -78,6 +78,9 @@ class ActionMenu extends React.Component { return event => { ReactTooltip.hide(); if (fn) fn(event); + // Blur the button so it does not keep focus after being clicked + // This prevents keyboard events from triggering the button + this.buttonRef.blur(); this.setState({forceHide: true, isOpen: false}, () => { setTimeout(() => this.setState({forceHide: false})); }); -- GitLab