From 138af82e298fd57d2f992a39934067fc5bd99a91 Mon Sep 17 00:00:00 2001 From: Ashley Dawson Date: Wed, 26 Mar 2014 22:21:54 +0000 Subject: [PATCH] Fixed nested tab elements li activation Added closest li instead of direct parent so that you can nest multiple elements within tabs, such as button groups --- js/tab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/tab.js b/js/tab.js index 400cb7b841..74e0a96e82 100644 --- a/js/tab.js +++ b/js/tab.js @@ -40,7 +40,7 @@ var $target = $(selector) - this.activate($this.parent('li'), $ul) + this.activate($this.closest('li'), $ul) this.activate($target, $target.parent(), function () { $this.trigger({ type: 'shown.bs.tab',