Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cascader 级联选择器] 多选删除t-tag,会触发两次Cascader的change事件 #3243

Closed
dhwebs opened this issue Jul 23, 2024 · 2 comments
Labels
to be published fixed, not be published

Comments

@dhwebs
Copy link
Contributor

dhwebs commented Jul 23, 2024

tdesign-vue 版本

1.9.8

重现链接

https://stackblitz.com/run?file=src%2Fdemo.vue

重现步骤

t-cascader组件多选模式, 在t-cascader绑定change事件,删除tag的时候change事件会执行两次。

看了源码,在tag的删除方法handleRemoveTagEffect里,调用了两次setValue
image

期望结果

删除tag 只触发一次change事件

实际结果

删除tag 会触发两次change事件

框架版本

2.7.0

浏览器版本

Chrome(104.0.5112.81)

系统版本

window10

Node版本

16.18.0

补充说明

No response

Copy link
Contributor

👋 @dhwebs,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@uyarn uyarn added the to be published fixed, not be published label Aug 29, 2024
@uyarn
Copy link
Collaborator

uyarn commented Aug 29, 2024

fixed 1.9.9

@uyarn uyarn closed this as completed Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to be published fixed, not be published
Projects
None yet
Development

No branches or pull requests

2 participants