Tencent / Tencent/tdesign-miniprogram

[t-dialog] 触摸穿透

Open
#3,079 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vue
Stars
1.8k
Forks
337
Avg merge
1d 21h
Merged PRs (30d)
19

Description

tdesign-miniprogram 版本

1.5.1

重现链接

重现步骤

dialog悬浮在输入框上方,如果连续点击,会概率性出现点击到输入框,导致输入框聚焦,显示在dialog弹窗里面,双击弹窗空白地方,还能弹出输入框的拷贝功能

https://github.com/user-attachments/assets/a7a3e9df-8a66-4c1f-b6c8-2a1ab416e91f

期望结果

无论弹窗空白处怎么点击,不能穿透到底层组件

实际结果

dialog悬浮在输入框上方,如果连续点击,会概率性出现点击到输入框,导致输入框聚焦,显示在dialog弹窗里面,双击弹窗空白地方,还能弹出输入框的拷贝功能

基础库版本

No response

补充说明

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the t-dialog component and reproduce the touch-through behavior described for version 1.5.1, using the attached recording as the reference. Verify that repeated taps or double-taps on the dialog’s blank area cannot focus the underlying input or expose its copy menu; no source file or test is named in the issue.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.