Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit d2c5cab

Browse files
apsdehalarschmitz
authored andcommitted
Tabs: Fix ui-button-active state on initially opened tab
Closes #8467 Fixes #7407
1 parent 741e744 commit d2c5cab

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

js/widgets/tabs.ajax.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@
3131
} )( function( $ ) {
3232

3333
return $.widget( "ui.tabs", $.ui.tabs, {
34+
35+
_create: function() {
36+
this._super();
37+
38+
this.active.find( "a.ui-tabs-anchor" ).addClass( "ui-button-active" );
39+
},
3440
_isLocal: function( anchor ) {
3541
var path, baseUrl, absUrl;
3642

0 commit comments

Comments
 (0)