x4js 2.0.24 → 2.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x4js",
3
- "version": "2.0.24",
3
+ "version": "2.0.25",
4
4
  "description": "X4 framework",
5
5
  "author": "etienne cochard",
6
6
  "license": "MIT",
@@ -412,13 +412,18 @@ export class Input extends Component<InputProps,InputEvents> {
412
412
  const checked = owner.querySelector( `input[name="${this.props.name}"]:checked` )
413
413
  return checked ? (checked as HTMLInputElement).value : undefined;
414
414
  }
415
-
415
+
416
416
  return this.getValue();
417
417
  },
418
418
  setRawValue: ( v: any ) => {
419
- if( this.props.type=='checkbox' || this.props.type=='radio' ) {
419
+ if( this.props.type=='checkbox' ) {
420
420
  this.setCheck( !!v );
421
421
  }
422
+ else if( this.props.type=='radio' ) {
423
+ if( this.props.value==v ) {
424
+ this.setCheck( true ) ;
425
+ }
426
+ }
422
427
  else {
423
428
  this.setValue(v);
424
429
  }