Skip to content

Collapse 设置 extra slot 按钮后,点击事件与折叠面板的panel header 点击事件重合,即使加入了preventDefault也会冒泡出去 #2444

@bhabgs

Description

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

Version

1.5.0

Environment

mac: 10.14.6、 chrome: 80.0.3987.132、Vue:2.6.11

Reproduction link

https://github.com/vueComponent/ant-design-vue/issues

Steps to reproduce

Collapse 设置 extra slot 按钮后,点击事件与折叠面板的panel header 点击事件重合,即使加入了preventDefault也会冒泡出去。
img

What is expected?

希望事件冒泡能够被 panel 上的 preventDefault 解决。

What is actually happening?

目前情况是:
如图

使用阻止冒泡,也会被触发折叠面板的开合。
img

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