Skip to content
Snippets Groups Projects
Commit 6a977268 authored by Paul Kaplan's avatar Paul Kaplan
Browse files

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

Fixes issue #3269
parent 189a78d2
No related branches found
No related tags found
No related merge requests found
......@@ -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}));
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment