I'm trying to figure out how to make a popover with Popper.js to stay in the parent container of both the popover and the target when scrolling.
Here is an example: https://codesandbox.io/s/upbeat-hodgkin-ib2trf?file=/src/index.js
To reproduce the issue, we must set the height of the page small enough.
We can see that the popover, overflow in the content under the main container #container
.
I would like the popover to stay in the #container
when scrolling down.