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

[checkbox/radio] 事件无法向上传递 #2305

Closed
zhuomingliang opened this issue Aug 20, 2023 · 1 comment · Fixed by #2309
Closed

[checkbox/radio] 事件无法向上传递 #2305

zhuomingliang opened this issue Aug 20, 2023 · 1 comment · Fixed by #2309
Labels
good first issue Good for newcomers in progress issue or pull request is in progress

Comments

@zhuomingliang
Copy link

zhuomingliang commented Aug 20, 2023

tdesign-miniprogram 版本

1.1.15

重现链接

No response

重现步骤

在 radio 以及 checkBox 为 readonly 或者 disabled 状态,点击 radio 和 checkBox 的内容,事件无法传递给父组件盒子。

查看了一下源代码,radio 和 checkBox 里面有两个事件绑定 bind:tap="handleTap"catch:tap="handleTap",其中 catch:tap 阻止了事件冒泡,正确的做法是:这两个 tap 事件应该统一改成:mut-bind:tap,形成 互斥事件绑定 而不会影响传递给父组件盒子。

期望结果

No response

实际结果

No response

基础库版本

No response

补充说明

No response

@github-actions
Copy link
Contributor

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

@LeeJim LeeJim added good first issue Good for newcomers in progress issue or pull request is in progress labels Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers in progress issue or pull request is in progress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants