From: pine3ree Date: Fri, 4 Sep 2020 23:21:15 +0000 (+0200) Subject: fix drilldown behaviour in responsive-menu by removing leftover attached X-Git-Tag: v6.7.1~31^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12149%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git fix drilldown behaviour in responsive-menu by removing leftover attached --- diff --git a/js/foundation.drilldown.js b/js/foundation.drilldown.js index d4a951350..84a2ca47b 100644 --- a/js/foundation.drilldown.js +++ b/js/foundation.drilldown.js @@ -527,13 +527,14 @@ class Drilldown extends Plugin { * @function */ _destroy() { + $('body').off('.zf.drilldown'); if(this.options.scrollTop) this.$element.off('.zf.drilldown',this._bindHandler); this._hideAll(); this.$element.off('mutateme.zf.trigger'); Nest.Burn(this.$element, 'drilldown'); this.$element.unwrap() .find('.js-drilldown-back, .is-submenu-parent-item').remove() - .end().find('.is-active, .is-closing, .is-drilldown-submenu').removeClass('is-active is-closing is-drilldown-submenu') + .end().find('.is-active, .is-closing, .is-drilldown-submenu').removeClass('is-active is-closing is-drilldown-submenu').off('transitionend otransitionend webkitTransitionEnd') .end().find('[data-submenu]').removeAttr('aria-hidden tabindex role'); this.$submenuAnchors.each(function() { $(this).off('.zf.drilldown');