We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.7.0
tdesign-miniprogram/src/rate/rate.ts
Line 73 in b193a61
列表页加了Rate 控件,但Rate 组件点击没反应,也不能传递点击事件,导致列表页无法跳转到详情页
就算Rate控件设置了disalbe,也可以向上传递点击事件
No response
可以向上传点击事件,类似this.triggerEvent('click', e); 见 https://github.com/Tencent/tdesign-miniprogram/blob/b193a61b3da6afd98bb5b75e2254ea2befca6ba5/src/tag/tag.ts#L85C7-L85C37
The text was updated successfully, but these errors were encountered:
👋 @dlxbcn,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
Sorry, something went wrong.
@dlxbcn 什么叫做“就算Rate控件设置了disalbe,也可以向上传递点击事件”, 禁用就是禁用
@anlyyao 我来解释一下这个场景,看这段代码 <view bind:tap="gotTap"> {{text}} <input value="123" disabled/> <t-rate value="{{4}}" disabled /> </view>
<view bind:tap="gotTap"> {{text}} <input value="123" disabled/> <t-rate value="{{4}}" disabled /> </view>
Page({ data: { text:"" }, gotTap(e){ this.setData({text:"clicked"}); setTimeout(()=>{ this.setData({text:""}); }, 3000) }, })
这段代码在点击【input】的时候,父控件是可以收到点击事件的,但点击【t-rate】控件时,父控件就无法收到点击事件了,通过这个实验,我觉得 disabled 可以理解为【禁用】,但只是这个控件不响应,并不应该阻止事件冒泡。
No branches or pull requests
tdesign-miniprogram 版本
1.7.0
重现链接
tdesign-miniprogram/src/rate/rate.ts
Line 73 in b193a61
重现步骤
列表页加了Rate 控件,但Rate 组件点击没反应,也不能传递点击事件,导致列表页无法跳转到详情页
期望结果
就算Rate控件设置了disalbe,也可以向上传递点击事件
实际结果
No response
基础库版本
No response
补充说明
可以向上传点击事件,类似this.triggerEvent('click', e);
见
https://github.com/Tencent/tdesign-miniprogram/blob/b193a61b3da6afd98bb5b75e2254ea2befca6ba5/src/tag/tag.ts#L85C7-L85C37
The text was updated successfully, but these errors were encountered: