Tab events fired on wrong dropdown anchor
Created by: Sinetheta
When .tabs() are used with a dropdown option the show and shown events will always reference the last option instead of the correct option. jsFiddle
The problem is line 52 of bootstrap-tab.js
previous = $ul.find('.active a').last()[0]
Since both the parent and child <li> are given a class of .active, this selector will scoop up all of the anchors in the parent, then grab only the last one. It could instead filter before traversing to the anchor.
previous = $ul.find('.active:last a')[0]