Skip to content

[Toast] preventScrollThrough为true时,偶现Toast已隐藏,但页面还是无法点击 #1219

@GWCodeN

Description

@GWCodeN

tdesign-miniprogram 版本

0.30.0

重现链接

No response

重现步骤

代码:

exports.showLoading =()=>{
  console.log('showLoading');
  Toast({
    selector: '#t-toast',
    message: '加载中...',
    theme: 'loading',
    direction: 'column',
    duration: 0,
    preventScrollThrough:true,
  });
}
exports.hideLoading =()=>{
  console.log('hideLoading');
  hideToast({
    selector: '#t-toast',
  });
}

正常操作

102FA11E-88A9-4278-B800-26619ECA07D2

期望结果

去掉preventScrollThrough 正常
9AC897F1-BA85-4354-A729-75B41152C97B

实际结果

添加preventScrollThrough后
loading 消失了,但是页面无法点击了
偶发,而且几率很高
B1E82997-0F27-4526-9AE7-4814E4A29BC8

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

多个页面wxml存在

<t-toast  id="t-toast" />

Metadata

Metadata

Assignees

Labels

🐞 bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions