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
create an iron-list binded to a firebase collection element
select an item
update the item in firebase
the selected item becomes unselected
Firebase collection uses : this.splice('data', this.data.indexOf(oldValue), 1, value); when it needs to update a value. Iron list as a result will delete and add the element to the list and in the process it will deselect.
I am not sure if this is an issue with the list or if the firebase component that maybe should use something more clever then splice. I am not an expert so i will live you this decision to you.
The text was updated successfully, but these errors were encountered:
I'm very new to polymer, so this may be unrelated, but I'm experiencing a similar issue using dom-repeat. I'm able to work around the behavior by adding a filter to the template that always returns true.
I'm also new to polymer and having the same problem. Whenever a child is created with a dom-repeat, then it cannot seamlessly update itself via firebase. As every update fires, the data gets pushed back through from firebase and it triggers a recreation of the child. This has the effect of (for instance) blurring an input field on every key up event.
Filtering can fix it, but doesn't completely solve the issue. As in my case the dom-repeat list is dynamically populated and filtering it seems to break the functionality of the list.
Either it's a problem that anyone building complex apps with polymer/firebase faces, or we're structuring our apps incorrectly.
From: PolymerElements/iron-list#131
Steps to reproduce the issue:
Firebase collection uses : this.splice('data', this.data.indexOf(oldValue), 1, value); when it needs to update a value. Iron list as a result will delete and add the element to the list and in the process it will deselect.
I am not sure if this is an issue with the list or if the firebase component that maybe should use something more clever then splice. I am not an expert so i will live you this decision to you.
The text was updated successfully, but these errors were encountered: