Skip to content

Conversation

@tom1997-max
Copy link

@tom1997-max tom1997-max commented May 22, 2025

ant-design-vue按钮组件有一个点击水波纹效果,在按钮点击的时候,会先清除一次事件监听,这时wujie在缓存事件时,会进入iframeWindow.Node.prototype.removeEventListener函数里面,由于事件还未监听,index为-1时,elementListenerList.splice(index, 1)错误的移除了其他事件,加入一个判断就好了

  • 提交符合commit规范
  • 文档更改
  • 测试用例添加
  • npm run test通过
详细描述

ant-design-vue按钮组件有一个点击水波纹效果,在按钮点击的时候,会先清除一次事件监听,这时wujie在缓存事件时,会进入iframeWindow.Node.prototype.removeEventListener函数里面,由于时间还未监听,index为-1时,elementListenerList.splice(index, 1)错误的移除了其他事件,加入一个判断就好了
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant