]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix for #5362
authorKevin Attfield <k.attfield@gmail.com>
Mon, 1 Oct 2012 04:41:37 +0000 (21:41 -0700)
committerKevin Attfield <k.attfield@gmail.com>
Mon, 1 Oct 2012 04:41:37 +0000 (21:41 -0700)
Fix for issue [5362](https://github.com/twitter/bootstrap/issues/5362):
tab events fired on wrong dropdown anchor.

js/bootstrap-tab.js

index 4fb3c383995dc25cff79c5539bbed782c81834a3..b4e142864e9db2d5283de5235294fe758402bfae 100644 (file)
@@ -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