Skip to content
Snippets Groups Projects
Unverified Commit 6840e510 authored by Paul Kaplan's avatar Paul Kaplan Committed by GitHub
Browse files

Merge pull request #3874 from paulkaplan/fix-keyboard-issues

Stop action menu focus stealing keyboard events from the VM
parents 616d4fa1 6a977268
No related branches found
No related tags found
No related merge requests found
...@@ -78,6 +78,9 @@ class ActionMenu extends React.Component { ...@@ -78,6 +78,9 @@ class ActionMenu extends React.Component {
return event => { return event => {
ReactTooltip.hide(); ReactTooltip.hide();
if (fn) fn(event); 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}, () => { this.setState({forceHide: true, isOpen: false}, () => {
setTimeout(() => this.setState({forceHide: 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