Skip to content

bound event with once gets reused in v-if/else condition #8032

Closed
@ghost

Description

Version

2.5.16

Reproduction link

https://codepen.io/katedo17/pen/rdXMbp

Steps to reproduce

Enter "3" in the input field, and click the link "Test Btn 2".

What is expected?

It should only trigger the on click event that was configured for the "Test Btn 2".

What is actually happening?

It triggers the function binded to "Test Btn 1" and then trigger the "Test Btn 2".


This only happens when I use v-if in the parent element of the link. But if I use v-show, it doesn't have the issue.

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