Skip to content

contitional render inser node in wrong place #2

@chasel34

Description

@chasel34

When the conditionally rendered node is the first child of the parent node, as shown in the code below, the position of this node is not inserted as expected as the first child of the parent when it changes from an empty node to a real node.

image
image

This seems to be because the 'updateDom' method only concerns itself with the 'lastUpdatedSibling', and the first child node does not have a 'lastUpdatedSibling'.image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions