Skip to content

Commit 13fa4a9

Browse files
committed
Tabs: Don't apply a spinner when nested tabs are loading. Fixes #8529 - tabs with in tabs, heading appears as Loading....
1 parent 7852583 commit 13fa4a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ui/jquery.ui.tabs.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,9 @@ if ( $.uiBackCompat !== false ) {
948948
this._super();
949949
this._on({
950950
tabsbeforeload: function( event, ui ) {
951-
if ( !this.options.spinner ) {
951+
// Don't react to nested tabs or tabs that don't use a spinner
952+
if ( event.target !== this.element[ 0 ] ||
953+
!this.options.spinner ) {
952954
return;
953955
}
954956

0 commit comments

Comments
 (0)