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

[button] tap事件默认使用了 catch:tap 导致tap事件无法冒泡向上级传递 #2025

Open
v10258 opened this issue May 22, 2023 · 4 comments · May be fixed by #1988
Open

[button] tap事件默认使用了 catch:tap 导致tap事件无法冒泡向上级传递 #2025

v10258 opened this issue May 22, 2023 · 4 comments · May be fixed by #1988
Assignees
Labels
bug Something isn't working next version

Comments

@v10258
Copy link

v10258 commented May 22, 2023

tdesign-miniprogram 版本

重现链接

No response

重现步骤

<authorize-dialog>
  <t-button
    theme="primary"
    block
    shape="round"
  >
    {{taskData.status === 'cease' ? '已结束' : '响应'}}
  </t-button>
</authorize-dialog>

期望结果

tap事件可以冒泡向上层传递

实际结果

No response

基础库版本

No response

补充说明

No response

@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

♥️ 有劳 @LeeJim 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @v10258

@v10258
Copy link
Author

v10258 commented May 25, 2023

在单独使用 t-button 组件时候,影响不大。 如果把 t-button 作为 slot 内容传递给其他组件,其他组件绑定的 bingtap 事件将失效。

@anlyyao
Copy link
Collaborator

anlyyao commented May 31, 2023

@v10258 这个问题在 #1988 中已处理,因为存在 breaking change,所以只能在 next version 带上

@anlyyao anlyyao self-assigned this May 31, 2023
@anlyyao anlyyao linked a pull request May 31, 2023 that will close this issue
16 tasks
@LeeJim LeeJim added bug Something isn't working next version labels Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working next version
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants