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

[Style] 所有弹窗都会为body添加.el-popup-parent--hidden类,其中overflow: hidden属性会导致窗口滚动条位置重置 #16687

Closed
Ketuer opened this issue Apr 27, 2024 · 2 comments

Comments

@Ketuer
Copy link

Ketuer commented Apr 27, 2024

Bug Type: Style

Environment

  • Vue Version: 3.4.25
  • Element Plus Version: 2.7.2
  • Browser / OS: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
  • Build Tool: Vite

Reproduction

Related Component

  • el-dialog
  • el-drawer
  • el-message-box

Reproduction Link

Link

Steps to reproduce

直接添加一个高度很大的盒子,扩展整个body高度,使浏览器出现滚动条,此时向下滚动一定位置,当打开抽屉或者出现弹窗时,页面直接跳到顶部,滚动高度被重置。

What is Expected?

不应该影响滚动高度

What is actually happening?

.el-popup-parent--hidden包含overflow: hidden样式导致滚动位置跳回顶部

Additional comments

(empty)

@FrontEndDog
Copy link
Member

请提供一个复现链接 以便我们定位问题 谢谢

Copy link

github-actions bot commented May 1, 2024

Since the issue was labeled with needs-more-info, but no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply.
由于该 issue 被标记为需要更多信息,却 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants