-
Notifications
You must be signed in to change notification settings - Fork 2k
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
set() has no effect after splice() #4196
Comments
I don't have an explanation, but the problem seems related to the key in your data path. It works correctly if you change:
to:
|
Awesome @tony19, |
Keys are stable: so #2 isn't the third item, it's a stable key to a particular item. If you remove that item and then try to edit it, it's not going to do anything. Accessing the items by index does what you want here. (In general, as the success say, you don't need to mess with keys unless you're doing something fancy like making your own dom-repeat or iron-list equivalent.) So I think this is WAI here. |
Got you, @arthurevans! Now the whole |
It seems polymer looses sync when using splice on arrays.
Live Demo
http://jsbin.com/qobivafuvo/edit?html,output
Steps to Reproduce in the jsbin
-->
Expected Results
At the second time clicking "Edit third item", the "new" third item should now read "----------".
Actual Results
Nothing happens.
Browsers Affected
Versions
Master
The text was updated successfully, but these errors were encountered: