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

Commit 2978275

Browse files
committed
Checkboxradio: set ui-btn-inherit as default theme class Fixes #6183 - checkboxradio("option", "theme") setter works only once
1 parent da41d09 commit 2978275

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

js/widgets/forms/checkboxradio.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ define( [ "jquery",
1818

1919
$.widget( "mobile.checkboxradio", $.extend( {
2020
options: {
21-
theme: null,
21+
theme: "inherit",
2222
mini: false,
2323
wrapperClass: null,
2424
enhanced: false,
@@ -92,7 +92,8 @@ $.widget( "mobile.checkboxradio", $.extend( {
9292
this.input.add( this.label ).wrapAll( this._wrapper() );
9393
this._setOptions({
9494
"theme": this.options.theme,
95-
"iconpos": this.options.iconpos
95+
"iconpos": this.options.iconpos,
96+
"mini": this.options.mini
9697
});
9798

9899
},
@@ -243,6 +244,7 @@ $.widget( "mobile.checkboxradio", $.extend( {
243244
} else if( this.element.parents( "[data-" + $.mobile.ns + "type='horizontal']" ).length !== 0 ){
244245
this.label.removeClass( "ui-btn-icon-" + this.options.iconpos );
245246
}
247+
this._super( options );
246248
}
247249

248250
}, $.mobile.behaviors.formReset ) );

0 commit comments

Comments
 (0)