From bdda0b0b8ab5a020fed84c93b97ea42d38e53fd3 Mon Sep 17 00:00:00 2001 From: Corey Snyder Date: Thu, 18 Aug 2016 15:05:47 -0400 Subject: [PATCH] Include tabs in mutation triggers MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Tabs itself has no need to listen for mutation events, but it’s content might. Trigger a mutation event to it’s listening children after the tabs change. --- js/foundation.tabs.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/foundation.tabs.js b/js/foundation.tabs.js index 979479631..e7926a16b 100644 --- a/js/foundation.tabs.js +++ b/js/foundation.tabs.js @@ -207,6 +207,9 @@ class Tabs { * @event Tabs#change */ this.$element.trigger('change.zf.tabs', [$target]); + + //fire to children a mutation event + $targetContent.find("[data-mutate]").trigger("mutateme.zf.trigger"); } /** -- 2.47.2