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 use iron-swipeable-container in an iron-list. Swiping an item removes the DOM node within the iron-list entry. Setting afterwards new data fails to restore the deleted DOM node.
Swipe away item "B" from the first block (iron-list)
=> Now item "C" isn't any longer visible in the iron-list (but still visible in the dom-repeat list)
Click on button "Reset items"
=> Item "B" is still not visible in iron-list (but is correctly visible in dom-repeat list)
Steps to reproduce
See JSBin
Browsers Affected
Chrome
Firefox
Safari 9
The text was updated successfully, but these errors were encountered:
ronnyroeller
changed the title
iron-list doesn't restore template on data change
iron-list doesn't restore template when element gets recycled
Jul 3, 2016
Because the DOM was removed dynamically, those nodes can't be recycled, but iron-list is not aware of those changes. I wonder if iron-swipeable-container could trigger an event when it's about to remove the DOM and do nothing if the event is defaultPrevented. That way we could fix this issue. cc @notwaldorf
Description
I use
iron-swipeable-container
in aniron-list
. Swiping an item removes the DOM node within the iron-list entry. Setting afterwards new data fails to restore the deleted DOM node.This does work with
dom-repeat
(see live demo: https://jsbin.com/cakizohagu/edit?html,output).Expected outcome
DOM node should be restored according to the template in the
iron-list
.Actual outcome
Data isn't visible (since the entry in the list doesn't have any longer the DOM node to show the data).
Live Demo
https://jsbin.com/cakizohagu/edit?html,output
Steps:
=> Now item "C" isn't any longer visible in the
iron-list
(but still visible in thedom-repeat
list)=> Item "B" is still not visible in
iron-list
(but is correctly visible indom-repeat
list)Steps to reproduce
See JSBin
Browsers Affected
The text was updated successfully, but these errors were encountered: