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
I don't sure is it an issue but i have problems with dynamic change of items content.
For example, I have an array of same objects with some fields and i put in iron-list as items.
In each item i show info from object, it works well.
But I need to edit some items, add or delete some text, when I do that nothing happens, iron-list
not re rendered, model of iron-list is updated after changes if I check this.$.list.items, I see that some fields of object in array were changed, but this new info not show in list, it show old info,
even this.$.list._update() doesn't help.
I know about that and I'am using this method now - list.set('items.0.name', 'some value'), it's good when you know that you need to change only one property in object or your object consists from few fields . But if you have object which has 20 or more fields, and user can edit every field in this object or just few fields, and after editing he wants to see updated list.
To update item info I implemented it like these:
var item = document.querySelector('#list').get('items.' + index);
for(var arg in item) {
document.querySelector('#list').set('items.' + index + '.' + arg, updatedObject[arg]);
}
And yes I used _refreshAll() method and it packed all iron-list items in one line whithout updating info from object fields.
And I think it's wrong behavior when model of iron-list which is items is updated but you can't see it in your list, becouse it continues to show old info.
I don't sure is it an issue but i have problems with dynamic change of items content.
For example, I have an array of same objects with some fields and i put in iron-list as items.
In each item i show info from object, it works well.
But I need to edit some items, add or delete some text, when I do that nothing happens, iron-list
not re rendered, model of iron-list is updated after changes if I check this.$.list.items, I see that some fields of object in array were changed, but this new info not show in list, it show old info,
even this.$.list._update() doesn't help.
here is simple example
http://jsbin.com/pefecihayi/edit?html,console,output
The text was updated successfully, but these errors were encountered: