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

Commit 37eb988

Browse files
author
Gabriel Schulhof
committed
[controlgroup] Need to ignore value of excludeInvisible during _create(), because all children will be invisible, since the page itself is invisible during enhance
1 parent bb945fc commit 37eb988

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

js/widgets/controlgroup.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ define( [ "jquery",
4545
self._setOption( key, value, true );
4646
});
4747

48-
this.refresh();
48+
this._refresh( true );
4949
},
5050

5151
_flipClasses: function( els, flCorners ) {
@@ -83,9 +83,9 @@ define( [ "jquery",
8383
this.element.toggleClass( "ui-mini", value );
8484
},
8585

86-
refresh: function() {
86+
_refresh: function( create ) {
8787
var els = this.element
88-
.find( ".ui-btn" + ( this.options.excludeInvisible ? ":visible" : "" ) )
88+
.find( ".ui-btn" + ( ( !create && this.options.excludeInvisible ) ? ":visible" : "" ) )
8989
.not( '.ui-slider-handle' ),
9090
corners = [ true, true ];
9191

@@ -94,6 +94,10 @@ define( [ "jquery",
9494
}
9595

9696
this._flipClasses( els, corners );
97+
},
98+
99+
refresh: function() {
100+
this._refresh( false );
97101
}
98102
});
99103

0 commit comments

Comments
 (0)