Skip to content

dynamic contents in v-if (in component's template) aren't persistent #804

Closed
@TerenceZ

Description

@TerenceZ

If We have a markup [v-if] > content and the content is dynamic, as long as the content changes and make the [v-if] hides->shows, the content in [v-if] will back to the previous [demo]. To find the actual problem, I check the source of vuejs and find that the [v-if] only snapshots the content when binding, and I also find that the implements for instance/compile (snapshot for _transCpnts) and compile in [v-if] (snapshot for children) will occur some problems (e.g., not fire the detach event) in some situations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions