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] Cascader组件change事件不触发 #1629

Open
keno80 opened this issue Oct 30, 2024 · 4 comments
Open

[cascader] Cascader组件change事件不触发 #1629

keno80 opened this issue Oct 30, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@keno80
Copy link

keno80 commented Oct 30, 2024

tdesign-mobile-vue 版本

1.4.2

重现链接

https://codesandbox.io/p/devbox/lv9zgm

重现步骤

当数据数组中的children为空数组,即 [ ] 时,无法触发change事件

期望结果

当数据数组中的children为空数组,即 [ ] 时,也可以正常触发change事件

实际结果

未触发

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

20.15

补充说明

在1.5.0版本也试过,均存在问题

Copy link
Contributor

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

@anlyyao anlyyao added the bug Something isn't working label Oct 30, 2024
@anlyyao
Copy link
Collaborator

anlyyao commented Oct 30, 2024

@keno80 确实有这个问题,我来优化一下,本周发版可带。 原因是 children: [] ,组件会以为还有内容,操作未结束。 或者你可以开启 checkStrictly 属性,它会在关闭后触发change事件

@keno80
Copy link
Author

keno80 commented Oct 30, 2024

@anlyyao 好的,感谢

@anlyyao anlyyao added enhancement New feature or request and removed bug Something isn't working labels Nov 19, 2024
@anlyyao
Copy link
Collaborator

anlyyao commented Nov 19, 2024

@keno80 😢😅 这个问题处理起来会和我们“异步加载示例”冲突,容我们讨论一下~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants