Skip to content

bug about keep-alive and @click.native caused repeated attach event handler? #10083

Closed
@action-hong

Description

@action-hong

Version

2.6.10

Reproduction link

https://codepen.io/action-hong/pen/eaKmOy

Steps to reproduce

  1. click "show/hide button" to hide button "add 1"
  2. click "show/hide button" to show button "add 1"
  3. click "add 1"

What is expected?

Repeat step 1 and step 2, Click the "add 1" to add 1 to the number

What is actually happening?

Repeat step 1 and step 2 , Click the "add 1" to add n(repeat times) to the number


5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions