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

[Dialog]打开多个弹窗,关闭一个后页面会出现滚动条 #382

Closed
wangzemin2017 opened this issue Feb 23, 2022 · 2 comments · Fixed by #384
Closed

[Dialog]打开多个弹窗,关闭一个后页面会出现滚动条 #382

wangzemin2017 opened this issue Feb 23, 2022 · 2 comments · Fixed by #384
Labels
🐞 bug Something isn't working

Comments

@wangzemin2017
Copy link

重现链接

https://codesandbox.io/s/tdesign-react-demo-forked-09mfom?file=/src/demo.jsx

重现步骤

1、点击按钮打开第一个弹窗;
2、点击第一个弹窗的确认按钮,打开第二个弹窗;
3、点击关闭按钮,关闭第二个弹窗,此时页面出现滚动条

期望结果

有弹窗出现的时候,不出现滚动条

实际结果

有弹窗出现的时候,出现了滚动条

Environment Info
相关版本 0.25.1
框架版本 / 基础库版本 React(17.0.2)
系统、浏览器 windows、mac, chrome
Node版本
@honkinglin honkinglin added the 🐞 bug Something isn't working label Feb 23, 2022
@honkinglin
Copy link
Collaborator

honkinglin commented Feb 23, 2022

看来 dialog 还得维护下更改 body 样式的数量才行
@psaren 帮忙看下

psaren added a commit to psaren/tdesign-react that referenced this issue Feb 23, 2022
多个弹窗关闭一个后出现滚动条

fix Tencent#382
psaren added a commit to psaren/tdesign-react that referenced this issue Feb 24, 2022
多个弹窗关闭一个后出现滚动条

fix Tencent#382
psaren added a commit to psaren/tdesign-react that referenced this issue Feb 24, 2022
多个弹窗关闭一个后出现滚动条

fix Tencent#382
@liangchaofei
Copy link

__common里面没文件,导致代码报错

uyarn pushed a commit that referenced this issue Apr 18, 2022
多个弹窗关闭一个后出现滚动条

fix #382
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants