element [bug report] dropdown cannot be displayed in full screen. There is no appendtobody property like select

dkqlctbz  于 2023-02-04  发布在  其他
关注(0)|答案(1)|浏览(122)

Element UI version

2.15.3

OS/Browsers version

win10/Microsoft Edge v91.0.864.64

Vue version

2.6.12

https://codepen.io/dodu2014/pen/yLbOMBK

Steps to reproduce

点击全屏按钮,进入全屏
select 下拉菜单正常
dropdown 下拉菜单不能正常显示, 原因是 dropdown-menu 绘制到#app元素以外了
能否让 dropdown 也支持 popper-append-to-body

What is Expected?

期待 dropdown 支持 popper-append-to-body 属性配置, 和 select 的 popper-append-to-body 这个属性效果一致

What is actually happening?

dropdown 不支持 popper-append-to-body

lyr7nygr

lyr7nygr1#

Translation of this issue:

Element UI version

2.15.3

OS/Browsers version

win10/Microsoft Edge v91.0.864.64

Vue version

2.6.12

https://codepen.io/dodu2014/pen/yLbOMBK

Steps to reproduce

Click the full screen button to enter the full screen

The select drop-down menu is normal
Dropdown menu cannot be displayed normally because dropdown menu is drawn outside the app element

Can dropdown also support Popper append to body

What is Expected?

Dropdown is expected to support the configuration of the Popper - append - to - body attribute, which is consistent with the effect of the Popper - append - to - body attribute of select

What is actually happening?

Dropdown does not support Popper append to body

相关问题