Element: [Bug Report] click el-image will add "overflow: hidden" to body makes the page unable to scroll

Created on 23 Dec 2019  ·  8Comments  ·  Source: ElemeFE/element

Element UI version

2.13.0

OS/Browsers version

macOS/Chrome79.0.3945.88

Vue version

2.6.11

Reproduction Link

https://codepen.io/bijinfeng/pen/mdymBgw

Steps to reproduce

click el-image element, check body attributes, you will find "overflow: hidden"

What is Expected?

I think only el-image element has "preview-src-list" attributes,could add "overflow: hidden" to body.

What is actually happening?

no "preview-src-list" attributes,still have "overflow: hidden" in body

Most helpful comment

Before the problem is solved,You can set the body style to overflow: auto !important first

All 8 comments

I actually had the same problem,I haven't found the right solution yet。

Before the problem is solved,You can set the body style to overflow: auto !important first

I am also getting the same problem.

这个是由于element-ui的Image组件的原因,估计下个版本会解决,暂时可以传个imglist参数过去值是图片的地址

我也是遇到这问题,一点击 滚动条就没有了 无了个语

I actually had the same problem,I haven't found the right solution yet。

同有这问题好久了

19075

Was this page helpful?
0 / 5 - 0 ratings