Skip to content

value property doesn't respect the data type v4 b3 #15334

@comfortme

Description

@comfortme

Bug Report

Ionic Info

Ionic:
   ionic (Ionic CLI) : 4.1.0
   v4 b3
System:
   NodeJS : v8.11.1
   npm    : 5.6.0
   OS     : Windows 10

Describe the Bug
for example in radio group component, value property is string.
if I provide value="true" for ion-radio, I get 'true' as string from ngModel in ion-radio-group
this is the case for most of the components. segment, checkbox etc.

Steps to Reproduce
Steps to reproduce the behavior:

<ion-radio-group [ngModel]="val"> <ion-item> <ion-label>open</ion-label> <ion-radio value="true"></ion-radio> </ion-item> <ion-item> <ion-label>close</ion-label> <ion-radio value="false"></ion-radio> </ion-item> </ion-radio-group>

return value of val is now string.

Expected Behavior
value property should respect the provided data type.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions