Skip to content

Commit 8eefd20

Browse files
committed
Tabs: Keep reference to existing tablist during refresh. Fixes #9584 - Tabs: Refresh issue when tabs are moved to bottom.
(cherry picked from commit e14f75e)
1 parent c78ac67 commit 8eefd20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.tabs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ $.widget( "ui.tabs", {
441441

442442
// allow overriding how to find the list for rare usage scenarios (#7715)
443443
_getList: function() {
444-
return this.element.find( "ol,ul" ).eq( 0 );
444+
return this.tablist || this.element.find( "ol,ul" ).eq( 0 );
445445
},
446446

447447
_createPanel: function( id ) {

0 commit comments

Comments
 (0)