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] 包裹image icon="none" borderless 时经常change 事件不触发 #3257

Open
farsunset-com opened this issue Nov 7, 2024 · 3 comments

Comments

@farsunset-com
Copy link

farsunset-com commented Nov 7, 2024

tdesign-miniprogram 版本

1.7.0

重现链接

微信小程序基础版本3.6.3

重现步骤

<t-checkbox   value="{{1}}"  icon="none"   bind:change="onCheckChanged">
 <t-image  src="/images/1.svg" mode="heightFix" width="36" height="36"/>
</t-checkbox>

期望结果

预期每次点击checkbox 块 都会触发change事件,在onCheckChanged方法中打印了console.log(e);无效时 该日志没打印出来

实际结果

连续点击多次或者更换点击位置后,将不再触发

基础库版本

3.6.3

补充说明

如果显示出checkbox 点击没发现这种问题

No response

Copy link
Contributor

github-actions bot commented Nov 7, 2024

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

@farsunset-com farsunset-com changed the title [checkbox] 包裹image 切 icon="none" borderless 时经常change 事件不触发 [checkbox] 包裹image icon="none" borderless 时经常change 事件不触发 Nov 7, 2024
@farsunset-com
Copy link
Author

farsunset-com commented Nov 7, 2024

顺带还有个button问题
<t-button size="large" theme="danger" "disabled="{{true}}">按钮文字不显示</t-button>
danger 主题禁用时,按钮文字不会显示

@anlyyao
Copy link
Collaborator

anlyyao commented Nov 7, 2024

@farsunset-com 未能复现 checkbox 问题,需要提供下可复现代码片段链接。

button 问题已在 #3261 处理

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants