2.3.9
Windows 7/Chrome 65
2.5.2
https://jsfiddle.net/mmx38qxw/1951/
Scroll top for a distance and click Show Dialog button. Then click the ElSelect in the dialog.
See the position of the option list.
Note: the actual reason is the result of getScrollParent is body. But the parent of dropdown is html. So the bounding is not consistent.
The position is correct.
The position is not correct.
Reproduction test.
test.zip
P.s. There is a typo in the comment of getScrollParent function.
// Firefox puts the *scrollTOp* value on `documentElement` instead
@ziyoung 算是 popup 的问题。
像是 HTML 元素上加了 overflow: hidden; 造成的。https://jsfiddle.net/zhiyang/dLw3mmfv/3
html {
/* overflow: hidden; */
height: 100%;
}
body {
overflow: auto;
height: 100%;
margin: 0;
}
element-ui 使用的 popper.js 版本有点老了。我在本地试了一下,如果最新版的 popper.js ,就不会出现这个问题了。我们正在考虑升级一下 popper.js。
@ziyoung 期待新的版本。
另外建议增加某个特性开始发布的版本。比如增加了某个prop,在旁边标注一下since xxx version。
@ddddderek 提供一个可重现问题的例子。
@ziyoung 不好意思。我的不是在dialog中。标题没看清楚。
后面我会提一个issues。
@ziyoung dalao这个什么时候能更新呢 还是已经更新过了
某个版本之后有个popper-append-to-body= =

Most helpful comment
P.s. There is a typo in the comment of
getScrollParentfunction.