element [Bug Report] 关于el-dropdown,外层wrap设置了overflow:auto,出现垂直滚动条时,向下滚动,el-dropdown-menu会跑到左上角

2q5ifsrm  于 2022-11-13  发布在  其他
关注(0)|答案(2)|浏览(529)

Element UI version

2.14.1

OS/Browsers version

谷歌75.0.3770.142

Vue version

2.6.12

https://jsfiddle.net/phy_lei/pnkjzmsb/

Steps to reproduce

先hover进蓝色小框框里,出现下拉菜单按钮时,点击下拉菜单,当菜单出来后,鼠标移到外面,鼠标滚轮滚动,下拉菜单会跑到左上角

What is Expected?

希望滚轮滚动的时候,下拉菜单能够消失,或者跟随页面滚动改变top指,而且仅为hover的时候,才会有这种情况出现

What is actually happening?

下拉菜单会跑到左上角

44u64gxh

44u64gxh1#

我尝试通过visibility: visible这样设置后,就可以根据元素滚动而滚动,但是left值却是不对,top值是对的,所以有没有办法,可以让我滚动的时候就让下拉菜单消失呢

qv7cva1a

qv7cva1a2#

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

相关问题