Skip to content

Commit

Permalink
Scope MenuBar Popup events to the controller
Browse files Browse the repository at this point in the history
  • Loading branch information
goodguyry committed Jan 8, 2021
1 parent a648399 commit 0374543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MenuBar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ export default class MenuBar extends AriaComponent {
case SPACE:
case RETURN:
case DOWN: {
if (popup) {
if (popup && event.target === popup.controller) {
event.stopPropagation();
event.preventDefault();

Expand Down

0 comments on commit 0374543

Please sign in to comment.