Skip to content

Commit

Permalink
fix(overflow-menu): prevent fewer defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan committed Sep 20, 2018
1 parent bdd070e commit 30a0949
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/overflow-menu/overflow-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ class OverflowMenu extends mixin(createComponent, initComponentBySearch, evented
const state = shouldBeOpen ? 'shown' : 'hidden';

if (isOfSelf) {
event.preventDefault();
if (element.tagName === 'A' || key === 13) {
event.preventDefault();
}
event.delegateTarget = element; // eslint-disable-line no-param-reassign
}

Expand Down

0 comments on commit 30a0949

Please sign in to comment.