aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Attfield <[email protected]>2012-09-30 21:41:37 -0700
committerKevin Attfield <[email protected]>2012-09-30 21:41:37 -0700
commit82715ae96dad4e97d208acf7f1654b25449e2bef (patch)
treefad152bfc84770f0a5a64eefd91d88fc2b4b1cfb
parentf8374a754d2ffe153ab14cb1315365c1303c6bbe (diff)
downloadbootstrap-82715ae96dad4e97d208acf7f1654b25449e2bef.tar.xz
bootstrap-82715ae96dad4e97d208acf7f1654b25449e2bef.zip
Fix for #5362
Fix for issue [5362](https://github.com/twitter/bootstrap/issues/5362): tab events fired on wrong dropdown anchor.
-rw-r--r--js/bootstrap-tab.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/bootstrap-tab.js b/js/bootstrap-tab.js
index 4fb3c3839..b4e142864 100644
--- a/js/bootstrap-tab.js
+++ b/js/bootstrap-tab.js
@@ -49,7 +49,7 @@
if ( $this.parent('li').hasClass('active') ) return
- previous = $ul.find('.active a').last()[0]
+ previous = $ul.find('.active:last a')[0]
e = $.Event('show', {
relatedTarget: previous