]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fix: partly revert #11457 - closes #11997 11998/head
authorDaniel Ruf <mac1@daniel-ruf.de>
Wed, 12 Feb 2020 17:25:50 +0000 (18:25 +0100)
committerDaniel Ruf <mac1@daniel-ruf.de>
Wed, 12 Feb 2020 17:25:50 +0000 (18:25 +0100)
js/foundation.dropdownMenu.js

index a696982ebf67d2f9f37545bf7100386af2b98349..c90310e36d9727c50683752ad8bca79b5752c68e 100644 (file)
@@ -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);