-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Closed
Description
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