From 82715ae96dad4e97d208acf7f1654b25449e2bef Mon Sep 17 00:00:00 2001 From: Kevin Attfield Date: Sun, 30 Sep 2012 21:41:37 -0700 Subject: Fix for #5362 Fix for issue [5362](https://github.com/twitter/bootstrap/issues/5362): tab events fired on wrong dropdown anchor. --- js/bootstrap-tab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js') diff --git a/js/bootstrap-tab.js b/js/bootstrap-tab.js index 4fb3c38399..b4e142864e 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 -- cgit v1.2.3