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

Commit 2c064f2

Browse files
author
Gabriel Schulhof
committed
[controlgroup] Refresh the child checkboxradio widgets when the controlgroup type (horizontal/vertical) changes
1 parent 75594d2 commit 2c064f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

js/widgets/controlgroup.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ define( [ "jquery",
6363
this.element
6464
.removeClass( "ui-controlgroup-horizontal ui-controlgroup-vertical" )
6565
.addClass( "ui-controlgroup-" + value );
66+
this._refresh( false );
6667
},
6768

6869
_setCorners: function( value ) {
@@ -83,6 +84,7 @@ define( [ "jquery",
8384

8485
_refresh: function( create ) {
8586
var els = this.element.find( ".ui-btn" ).not( ".ui-slider-handle" );
87+
this.element.find( ":mobile-checkboxradio" ).checkboxradio( "refresh" );
8688
this._addFirstLastClasses( els, this.options.excludeInvisible ? this._getVisibles( els, create ) : els, create );
8789
},
8890

0 commit comments

Comments
 (0)