Skip to content

二次开发,把button放入span,导致click回调函数行为异常 #7169

@zzzgit

Description

@zzzgit
  • I have searched the issues of this repository and believe that this is not a duplicate.

image

image

Version

3.2.20

Environment

Vue 最新

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. 封装组件b-button
  2. 打开浏览器控制台
  3. 点击这个按钮
  4. 发现回调函数会被调用两次

What is expected?

不要循环调用回调函数

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