Skip to content
Permalink
Browse files

Tabs: Handle extraneous list items when using ui-tabs-active to set t…

…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 fa62f21e5ad09e5368efc3079859730e23a7123b
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.tabs.js
@@ -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

0 comments on commit fa62f21

Please sign in to comment.
You can’t perform that action at this time.