Skip to content

the detached events not trigger #801

Closed
@TerenceZ

Description

@TerenceZ

In the followed situations, some expected detached event(s) not fire:

  1. [v-if] > [v-repeat] > [template] > [v-component]: In this structure, if we make [v-if] false after dynamic adding more components, the detached event won't be fired on the added components. demo
  2. [v-repeat] > [template] > [v-component]: In this structure, if reduce the repeat items, it will destroy the redundant components. However it seems that it clears all detached events in _events before firing for the redundant components. It's worth noting that there are no problems for deeper components. demo

Test version: 0.11.5 ~ 0.11.7.

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