Skip to content

Commit

Permalink
Merge branch 'master' into fix-5341
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan authored Feb 17, 2020
2 parents 28068cb + 50b14ff commit 5047ceb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/react/src/components/UIShell/HeaderMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,11 @@ class HeaderMenu extends React.Component {
const itemTriggeredBlur = this.items.find(
element => element === event.relatedTarget
);

if (
event.relatedTarget &&
(event.relatedTarget.getAttribute('href') !== '#' || itemTriggeredBlur)
((event.relatedTarget.getAttribute('href') &&
event.relatedTarget.getAttribute('href') !== '#') ||
itemTriggeredBlur)
) {
return;
}
Expand Down

0 comments on commit 5047ceb

Please sign in to comment.