From 0258c6bfed5056b684fb241163a718e081c76e17 Mon Sep 17 00:00:00 2001 From: Renol Date: Thu, 23 Mar 2017 10:32:33 +0100 Subject: [PATCH] Delete dropdown click event listener on destroy --- js/foundation.dropdown.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/foundation.dropdown.js b/js/foundation.dropdown.js index aa4fcb1e1..ff70a1ce2 100644 --- a/js/foundation.dropdown.js +++ b/js/foundation.dropdown.js @@ -348,6 +348,7 @@ class Dropdown { destroy() { this.$element.off('.zf.trigger').hide(); this.$anchor.off('.zf.dropdown'); + $(document.body).off('click.zf.dropdown'); Foundation.unregisterPlugin(this); } -- 2.47.2