Blur the action menu buttons so that they do not hold focus

Fixes issue #3269
This commit is contained in:
Paul Kaplan committed 2018-11-26 13:58:06 -05:00
1 parent 189a78d240
commit 6a977268d0
1 file changed
+3
@@ -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}));
});