Subscribe on changes!

vue3.2.32,会导致element-plus的el-image标签触发俩次click事件

avatar
Apr 25th 2022

Version

3.2.32

Reproduction link

stackblitz.com

Steps to reproduce

点击图片会触发俩次click事件

What is expected?

只触发一次click事件

What is actually happening?

触发俩次click事件


我是从"vue": "3.2.22","@vue/compiler-sfc": "3.2.22" 升级到"vue": "3.2.32","@vue/compiler-sfc": "3.2.32","vite": "2.9.1","element-plus": "2.1.9", 才出现这个奇怪的问题,目前我的处理方式是添加stop,进行阻止或者外层嵌套div

avatar
Apr 25th 2022

There is an example and like your example, but it is running correctly.

SFC Example

avatar
Apr 25th 2022

提供复现请不要引入第三方库,或者请先提交 issue 给此第三方库,排除是第三方库本身的问题。

avatar
Apr 25th 2022

There is an example and like your example, but it is running correctly.

SFC Example

There is an example and like your example, but it is running correctly.

SFC Example

The two sides are different. This is Vue. This version will affect element plus. Only this one has a problem

avatar
Apr 25th 2022

提供复现请不要引入第三方库,或者请先提交 issue 给此第三方库,排除是第三方库本身的问题。

This affects the third party. I made a project upgrade and upgraded Vue, vite and element plus at the same time. This problem occurred after the upgrade. I first mentioned issuesl to element, but later I found that it was not their problem.

The operation is:

First time: vue3 2.32,element-plus:1.1.0-beta. 24. Something's wrong

Second time: vue3 2.22,element-plus:1.1.0-beta. 24. No problem

The third time: vue3 2.22, element plus: 2.1.9, no problem

The third time: vue3 2.32, element plus: 2.1.9, the problem appears again After several tests, I asked you this question. You can do a test