'elementui popover does not follow button when scroll

I try to use popover on my page and I create popover when I clicked to button poover opened (but my page does not have scroll, I have inner div scroll) when I try to scroll popover does not follow the button.

How do I fix this. I see some options like container I try to apply but I cant, there is any option for that ?



Solution 1:[1]

Try add slot="reference"> for el-popover's child

EX:

<el-popover
  placement="top-start"
  title="Title"
  width="200"
  trigger="hover"
  content="this is content, this is content, this is content">
  <div slot="reference">
      ...do same think
  </div>
</el-popover>

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ??ng hi?u Liêm