You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot set initial value for ion-range with dualKnobs #83
Hey @WayneDanielSinclair Ineed it doesn't work as specified in the docs, in fact I have tested this with React as well and observed the same behaviour.
After debugging it int he browser I've notice that when you pass an object to the value attribute, it would return NaN, yet setting it after works just fine.
@WayneDanielSinclair After checking with Ionic folks, looks like this is the way to go, you can not set it directly via the value attribute, I'll update the usage docs.
Perhaps adding new attributes to handle this would be better, but it's a feature request, feel free to submit it to Ionic.
Activity
michaeltintiuc commentedon Mar 25, 2019
Hey @WayneDanielSinclair Ineed it doesn't work as specified in the docs, in fact I have tested this with React as well and observed the same behaviour.
Here's a quick fix to get you going:
After debugging it int he browser I've notice that when you pass an object to the value attribute, it would return
NaN, yet setting it after works just fine.WayneDanielSinclair commentedon Mar 26, 2019
Ok, thanks for the workaround.
michaeltintiuc commentedon Mar 26, 2019
@WayneDanielSinclair I've submitted a bug report to Ionic as it impact React as well.
michaeltintiuc commentedon Mar 26, 2019
@WayneDanielSinclair After checking with Ionic folks, looks like this is the way to go, you can not set it directly via the
valueattribute, I'll update the usage docs.Perhaps adding new attributes to handle this would be better, but it's a feature request, feel free to submit it to Ionic.