Commit 138af82e authored by Ashley Dawson's avatar Ashley Dawson
Browse files

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
parent c692c29c
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment