-
Notifications
You must be signed in to change notification settings - Fork 81
"track by" doesn't work #31
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
Comments
To fix it you can comment out this line: |
Check my commits. Now it works with both: |
Using |
nicela |
See http://codepen.io/caseyjhol/pen/dPRXBN
Example:
When an option is selected, the value of the select is set to the object, rather than the track by property. So, selecting "Green" from the list sets the value to
{id: 20, name: 'Green' }
, instead of20
.I created a workaround by implementing a trackBy attribute and altering the
refresh
function.This isn't ideal and doesn't work when tracking by
$index
, but it works for me for now.The text was updated successfully, but these errors were encountered: