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

Fix/body overflow #1366

Merged
merged 5 commits into from
Apr 28, 2022
Merged

Fix/body overflow #1366

merged 5 commits into from
Apr 28, 2022

Conversation

answershuto
Copy link
Member

close #1365

原因是 rax-modal 的原理是设置一个 fixed 的蒙层,并且设置 body 为 overflow hidden,在 web 下, body 上的 overflow 会被代理到 html 上面以使其 overflow hidden 无法继续 scroll。

https://drafts.csswg.org/css-overflow-3/#overflow-propagation

@wssgcg1213 wssgcg1213 merged commit be05a5f into main Apr 28, 2022
@wssgcg1213 wssgcg1213 deleted the fix/body_overflow branch April 28, 2022 07:24
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

Successfully merging this pull request may close these issues.

rax-modal 在 kraken 上无法阻止蒙层之下的元素滚动
3 participants