element-plus [Component] [dialog, popover] When the dialog has height, scroll dialog, the popover will be displayed outside the dialog

ycl3bljg  于 5个月前  发布在  其他
关注(0)|答案(1)|浏览(118)

Bug Type: Component

Environment

  • Vue Version: 3.2.45
  • Element Plus Version: 2.2.27
  • Browser / OS: chrome108.0.5359.125 Win10
  • Build Tool: Vite

Reproduction

  • el-dialog
  • el-popover

Element Plus Playground

Steps to reproduce

Scroll dialog

What is Expected?

when i assign height to the dialog comp, scrolling dialog,popover does not move with the scroll bar.

What is actually happening?

Popover comp displays outside the dialog.

Additional comments

(empty)

yr9zkbsy

yr9zkbsy1#

希望这个功能可以集成到 el-tooltip 和 el-popover 等组件,如果 popover 出现在 el-dialog 中,那么 boundary 自动设置为 el-dialog。如果要手动写代码来维护 popover-options 实在太麻烦了。

相关问题