Skip to content

Commit

Permalink
fix: partly revert #11457 - closes #11997
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRuf committed Feb 12, 2020
1 parent 06a8d6a commit 29c8b4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/foundation.dropdownMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,12 @@ class DropdownMenu extends Plugin {
|| (_this.options.forceFollow && hasTouch)) {
return;
}
e.stopImmediatePropagation();
e.preventDefault();
_this._hide($elem);
}
else {
e.stopImmediatePropagation();
e.preventDefault();
_this._show($sub);
$elem.add($elem.parentsUntil(_this.$element, `.${parClass}`)).attr('data-is-click', true);
Expand Down

0 comments on commit 29c8b4a

Please # to comment.