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
If I try to bind to a specific property on an object array without specifying a template, it throws the following error even when using labelField and valueField
I've had a look and this is twofold, firstly you're binding valueField and labelField to the value of description, not the value description (remove the square brackets).
However, this has raised the fact that passing a non-string field will cause an error, so I've updated labelField to always return a string, so if you don't change this code you'll end up with lots of [object Object] in your select which will highlight the issue.
The hotfix release containing these changes will be out soon.
Makes sense, since the 2nd thing was that it's a non-string field so replace wouldn't work. Once I've sorted out the checkbox form stuff I'll get this release out :)
I see what you mean. Yes, removing square brackets and specifying a string
field works as expected. Not specifying a label field also throws the same
error.
This is now fixed in 0.9.2, the value of the property specified in labelField is automatically cast to a string before running any functions. (This also works for when nothing is specified)
If I try to bind to a specific property on an object array without specifying a template, it throws the following error even when using labelField and valueField
I cant get select to work in plunkr at the moment so no plunkr for this.
The text was updated successfully, but these errors were encountered: