Skip to content

custom event emit by the v-if component yet trigger the v-else component listener #7294

Closed
@mqli

Description

@mqli

Version

2.5.13

Reproduction link

https://codepen.io/posva/pen/baeJzd?editors=1111

Steps to reproduce

define a custom component witch emit custom event;
use v-if v-else create 2 component instances;
on first instance use v-on listen the custom event, the second DONOT;
toggle the v-if condition;
emit the custom event on the second instance

What is expected?

the listener on the first instance not been triggered

What is actually happening?

the listener on the first instance been triggered

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions