Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
comfortme opened this issue Aug 26, 2018 · 1 comment
Closed

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

comfortme opened this issue Aug 26, 2018 · 1 comment
Assignees

Comments

@comfortme
Copy link

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.

@ionitron-bot ionitron-bot bot added the triage label Aug 26, 2018
@manucorporat manucorporat self-assigned this Aug 29, 2018
@ionitron-bot ionitron-bot bot removed the triage label Aug 29, 2018
@ionitron-bot
Copy link

ionitron-bot bot commented Sep 28, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants