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

[Bug Report] 点击el-image渲染的图片后将使得页面无法滚动。 #18393

Closed
Fr3027 opened this issue Dec 13, 2019 · 2 comments
Closed

Comments

@Fr3027
Copy link

Fr3027 commented Dec 13, 2019

Element UI version

2.13.0

OS/Browsers version

mac10.15.1/chrome(79.0.3945.79)

Vue version

2.6.10

Reproduction Link

https://jsfiddle.net/destiny3027/ve4xyqj0/3/

Steps to reproduce

单击图片即可。

What is Expected?

点击图片不会引起右侧滚动条的消失。

What is actually happening?

点击图片后右侧滚动条消失且无法滚动。

@liu20115342
Copy link

我也遇到这个问题了,看了下源码,是因为点击图片后会向body增加overflow: hidden,没有不使用增预览功能这会导致页面不滚动,应该判断下preview-srcList是否有值再执行预览,这个地方没做判断,不清楚什么时候修复。
image

@luckyCao
Copy link
Contributor

luckyCao commented Apr 8, 2020

#19075

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 a pull request may close this issue.

3 participants