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

[Drawer] 多个抽屉交替使用导致的背景滚动问题 #2655

Open
TingShine opened this issue Aug 2, 2023 · 2 comments
Open

[Drawer] 多个抽屉交替使用导致的背景滚动问题 #2655

TingShine opened this issue Aug 2, 2023 · 2 comments
Assignees

Comments

@TingShine
Copy link

TingShine commented Aug 2, 2023

tdesign-vue 版本

0.48.5

重现链接

No response

重现步骤

打开一个抽屉,然后关闭这个抽屉的同时打开另外一个抽屉

期望结果

背景不可滚动

实际结果

背景可滚动

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

需要在关闭第一个关闭后,使用setTimeout开启第二个抽屉,这样第一个抽屉关闭时在body删除的lock才不会影响到第二个

  • 另外一个问题,如果使用visible为true控制组件,使用v-if控制显示的话,在unmout的时候没有删除lock,会导致背景不可滚动
@github-actions
Copy link
Contributor

github-actions bot commented Aug 2, 2023

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

@github-actions
Copy link
Contributor

github-actions bot commented Aug 2, 2023

♥️ 有劳 @chaishi @zhaodanchun @heyouquan @zhning12 @uyarn 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @TingShine

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

No branches or pull requests

3 participants