Tencent / Tencent/tdesign-miniprogram

[Dialog] 偶发现出现画面跳转再返回后,弹窗关闭但遮罩层还在的现象

Open
#2,827 12 comments 0 reactions 1 assignee View on GitHub

@anlyyao is already working on this.

Since Jun 4, 2024.

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

Description

tdesign-miniprogram 版本

1.2.0

重现链接

No response

重现步骤

代码如下所示:

const showDialog = {
  content: res.message,
  confirmBtn: '去购买押金',
  cancelBtn: '取消'
};
Dialog.confirm(showDialog).then(()=> {
  wx.navigateTo({
    url: '../../usercenter/deposit/index',
  });
}).catch(() => console.log('点击了取消'))
.finally(() => Dialog.close());
期望结果

点击按钮跳转到下一页返回之后,页面能够正常点击,无异常

实际结果

偶然会出现返回之后,遮罩层还在画面上,画面无法点击的情况。
现象和真机调试的结果,通过图片和视频上传了。

之后尝试了不用命令行控制,用visible的那个方式,也是不行,也会出现偶发的不可点击的现象。
再之后也尝试了,把画面跳转写到wx.navigateTo的complete回调里面,也不行。。。

https://github.com/Tencent/tdesign-miniprogram/assets/38103260/01f4861f-0e9b-414a-ba0c-6eff51054414

微信图片_20240531153033
微信图片_20240531153036

基础库版本

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.