LearnNewsExamplesServices
Frontmatter
id2815
titlelist.plugin.Animate: remove the need to specify DOM ids for each child node
stateClosed
labels
enhancementstale
assigneestobiu
createdAtJan 9, 2022, 11:00 PM
updatedAtSep 15, 2024, 4:36 AM
githubUrlhttps://github.com/neomjs/neo/issues/2815
authortobiu
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtSep 15, 2024, 4:36 AM

list.plugin.Animate: remove the need to specify DOM ids for each child node

Closed v8.1.0 enhancementstale
tobiu
tobiu commented on Jan 9, 2022, 11:00 PM

This is especially needed for future component based list demos which are using this plugin.

The vdom engine relies on DOM ids to check for move OPs. When executing triggerTransitionCallback(), we regenerate all items to remove the ones which got faded out and restore the item indexes.

To resolve this, createItem() needs to check for existing items within the virtual DOM and use e.g. util.VDom: syncVdomIds() to restore existing child ids for us.

tobiu added the enhancement label on Jan 9, 2022, 11:00 PM
tobiu assigned to @tobiu on Jan 9, 2022, 11:00 PM