From b082acda4834f9a4ff755cb62b2c4e0cefe63af1 Mon Sep 17 00:00:00 2001 From: pine3ree Date: Sat, 5 Sep 2020 01:21:15 +0200 Subject: [PATCH] fix drilldown behaviour in responsive-menu by removing leftover attached --- js/foundation.drilldown.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'); -- 2.47.2