]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fix drilldown behaviour in responsive-menu by removing leftover attached 12149/head
authorpine3ree <pine3ree@gmail.com>
Fri, 4 Sep 2020 23:21:15 +0000 (01:21 +0200)
committerpine3ree <pine3ree@gmail.com>
Fri, 4 Sep 2020 23:21:15 +0000 (01:21 +0200)
js/foundation.drilldown.js

index d4a95135092a6b07f8d6bc0c91ce54448330a476..84a2ca47b07e0b4e5ee58005fd2d01e00c2d2b1a 100644 (file)
@@ -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');