Frontmatter
| id | 2815 |
| title | list.plugin.Animate: remove the need to specify DOM ids for each child node |
| state | Closed |
| labels | enhancementstale |
| assignees | tobiu |
| createdAt | Jan 9, 2022, 11:00 PM |
| updatedAt | Sep 15, 2024, 4:36 AM |
| githubUrl | https://github.com/neomjs/neo/issues/2815 |
| author | tobiu |
| commentsCount | 2 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Sep 15, 2024, 4:36 AM |
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.