From 30a094958797332e376ec986a90d5260a8c21e1c Mon Sep 17 00:00:00 2001 From: TJ Egan Date: Thu, 20 Sep 2018 10:40:37 -0500 Subject: [PATCH] fix(overflow-menu): prevent fewer defaults --- src/components/overflow-menu/overflow-menu.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/overflow-menu/overflow-menu.js b/src/components/overflow-menu/overflow-menu.js index 7e195a824bb8..bdc031fc5d21 100644 --- a/src/components/overflow-menu/overflow-menu.js +++ b/src/components/overflow-menu/overflow-menu.js @@ -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 }