File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ var __meta__ = {
22
22
encoded : true ,
23
23
label : null ,
24
24
rounded : "medium" ,
25
- size : "medium"
25
+ size : "medium" ,
26
+ wrapperClass : "k-checkbox-wrap"
26
27
} ,
27
28
28
29
RENDER_INPUT : kendo . html . renderCheckBox ,
Original file line number Diff line number Diff line change @@ -122,8 +122,15 @@ var __meta__ = {
122
122
inputMethod ( that . element , $ . extend ( { } , options ) ) ;
123
123
that . element . removeClass ( 'input-validation-error' ) ;
124
124
125
- that . wrapper = that . element ;
126
- }
125
+ that . wrapper = that . element . wrap ( `<span class="${ options . wrapperClass } "></span>` ) . parent ( ) ;
126
+ } ,
127
+
128
+ setOptions : function ( options ) {
129
+ this . _clearCssClasses ( options , this . element ) ;
130
+ this . _setEvents ( options ) ;
131
+ $ . extend ( this . options , options ) ;
132
+ this . _applyCssClasses ( this . element ) ;
133
+ } ,
127
134
} ) ;
128
135
129
136
ui . plugin ( ToggleInputBase ) ;
Original file line number Diff line number Diff line change @@ -506,7 +506,7 @@ var __meta__ = {
506
506
}
507
507
508
508
widgetInstance = ( widgetInstance && widgetInstance . options . name == "Signature" ) ? widgetInstance : kendo . widgetInstance ( input ) ;
509
- if ( ! widgetInstance || ! ( widgetInstance . _inputWrapper || widgetInstance . wrapper ) ) {
509
+ if ( ! widgetInstance || ! ( widgetInstance . _inputWrapper || widgetInstance . wrapper ) || ( input . is ( "[type=checkbox]" ) || input . is ( "[type=radio]" ) ) ) {
510
510
input . toggleClass ( INVALIDINPUT , ! valid ) ;
511
511
input . toggleClass ( VALIDINPUT , valid ) ;
512
512
}
@@ -515,7 +515,7 @@ var __meta__ = {
515
515
var inputWrap = widgetInstance . _inputWrapper || widgetInstance . wrapper ;
516
516
var inputLabel = widgetInstance . _inputLabel ;
517
517
518
- if ( inputWrap ) {
518
+ if ( inputWrap && ! ( input . is ( "[type=checkbox]" ) || input . is ( "[type=radio]" ) ) ) {
519
519
inputWrap . toggleClass ( INVALIDINPUT , ! valid ) ;
520
520
inputWrap . toggleClass ( VALIDINPUT , valid ) ;
521
521
}
You can’t perform that action at this time.
0 commit comments