-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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] when el-image in a scrolling div. Left clik the image will lead to the page can't scroll #18234
Comments
if i don't need preview the image, the click handler will also add a body style overflow = 'hidden'.
|
i think add the following code will handle it
|
I get this problem too. it seems to make image-viewer run. but haven't check for i had not set preview-src-list. 看起来是为了打开 image-viewer 给body添加了overflow = 'hidden'。但是没有判断是否传了preview-src-list。没有的时候就是把滚动去掉了。这个问题还是挺影响使用的。望尽快修复。 |
Also encountered this problem. |
same problem |
Same problem |
@luckyCao @island205 Please correct this regression. As soon as any image is clicked, we now permanently and irreversibly get a body { overflow: hidden } attribute added breaking page scrolling.... reproduction link from @zzxCNCZ https://codepen.io/zzxcncz/pen/LYYwOXo |
This PR resolves this bug..... |
fixed |
Element UI version
2.13.0
OS/Browsers version
chrome 78.0.3904.108
Vue version
2.6.10
Reproduction Link
https://codepen.io/zzxcncz/pen/LYYwOXo
Steps to reproduce
click the image ,then the page can't scroll
What is Expected?
click the image ,then the page can scroll
What is actually happening?
click the image ,then the page can scroll.
i fock the code from the element ui website.The demo of the component in the website can also lead the result. Just click the image ,and chage to other page.Then the other page can't scroll.
i found the reason is when i click the image in a scrolling div. it will add a css in .the css is over-flow: hidden.
The text was updated successfully, but these errors were encountered: