diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-10-09 09:06:58 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-10-09 09:07:11 -0400 |
commit | fa62f21e5ad09e5368efc3079859730e23a7123b (patch) | |
tree | 9143be3bad39a787e9a511c260334754647fcaad /ui | |
parent | 1e6e4ce4dcd9ac885a7b4088898f61f4930e63a3 (diff) | |
download | jquery-ui-fa62f21e5ad09e5368efc3079859730e23a7123b.tar.gz jquery-ui-fa62f21e5ad09e5368efc3079859730e23a7123b.zip |
Tabs: Handle extraneous list items when using ui-tabs-active to set the initially active tab. Fixes #8568 - jQuery ui tabs: wrong default active li if ul contains extraneous elements.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.tabs.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index 506ee27d7..baf55d8dc 100644 --- a/ui/jquery.ui.tabs.js +++ b/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 |