Skip to content

Commit

Permalink
Tabs: Handle extraneous list items when using ui-tabs-active to set t…
Browse files Browse the repository at this point in the history
…he initially active tab. Fixes #8568 - jQuery ui tabs: wrong default active li if ul contains extraneous elements.
  • Loading branch information
scottgonzalez committed Oct 9, 2012
1 parent 1e6e4ce commit fa62f21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.ui.tabs.js
Expand Up @@ -91,7 +91,7 @@ $.widget( "ui.tabs", {

// check for a tab marked active via a class
if ( active === null ) {
active = this.tabs.filter( ".ui-tabs-active" ).index();
active = this.tabs.index( this.tabs.filter( ".ui-tabs-active" ) );
}

// no active tab, set to false
Expand Down

0 comments on commit fa62f21

Please sign in to comment.