File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
src/components/form-inputs/radio Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1302,21 +1302,20 @@ var Radio = function (_RadioBase2) {
13021302 var name = this . name ;
13031303 if ( p . $options . name == 'RadioGroup' ) {
13041304 name = name || p [ 'groupName' ] ;
1305- $ ( this . $el ) . wrap ( '<div class="field"></div>' ) ;
13061305 }
13071306 var self = this ;
13081307 $ ( this . $el ) . find ( 'input' ) . attr ( 'name' , name ) . on ( 'change' , function ( ) {
13091308 self . $emit ( 'input' , self . val ) ;
13101309 } ) ;
13111310 Vue . nextTick ( function ( ) {
1312- $ ( _this2 . $el ) . checkbox ( ) ;
1311+ $ ( _this2 . $el ) . find ( '.ui.radio' ) . checkbox ( ) ;
13131312 } ) ;
13141313 }
13151314 } ] ) ;
13161315 return Radio ;
13171316} ( _RadioBase ) ;
13181317Radio = __decorate ( [ vueTyped . Component ( {
1319- template : '\n\t<div class="ui radio checkbox">\n\t\t<input type="radio" class="hidden" :checked="value==val">\n\t\t<label><slot></slot></label>\n\t</div>\n\t'
1318+ template : '\n\t<div class="field">\n\t\t<div class=" ui radio checkbox">\n\t\t\t <input type="radio" class="hidden" :checked="value==val">\n\t\t\t <label><slot></slot></label>\n\t\t</div >\n\t</div>\n\t'
13201319} ) ] , Radio ) ;
13211320
13221321var _RadioGroupBase = function ( _FieldBase ) {
Original file line number Diff line number Diff line change @@ -4,9 +4,11 @@ import { _RadioBase } from './_base';
44
55@Component ( {
66 template : `
7- <div class="ui radio checkbox">
8- <input type="radio" class="hidden" :checked="value==val">
9- <label><slot></slot></label>
7+ <div class="field">
8+ <div class="ui radio checkbox">
9+ <input type="radio" class="hidden" :checked="value==val">
10+ <label><slot></slot></label>
11+ </div>
1012 </div>
1113 `
1214} )
@@ -19,7 +21,6 @@ export class Radio extends _RadioBase {
1921
2022 if ( p . $options . name == 'RadioGroup' ) {
2123 name = name || p [ 'groupName' ] ;
22- $ ( this . $el ) . wrap ( '<div class="field"></div>' )
2324 }
2425
2526 var self = this ;
@@ -31,7 +32,7 @@ export class Radio extends _RadioBase {
3132 } ) ;
3233
3334 Vue . nextTick ( ( ) => {
34- $ ( this . $el ) . checkbox ( )
35+ $ ( this . $el ) . find ( '.ui.radio' ) . checkbox ( )
3536 } )
3637 }
3738}
You can’t perform that action at this time.
0 commit comments