Closed zbrogz closed 3 years ago
https://codesandbox.io/s/nostalgic-hugle-9n0ns?file=/src/Menu.js
The nested poppers' position should update with the reference element as the page is scrolled.
Removing position: absolute or overflow: scroll from the parent div is a workaround.
position: absolute
overflow: scroll
It's likely that this is an issue with @popperjs/core, not react-popper.
@popperjs/core
react-popper
The issue seems indeed to be on @popperjs/core, could you open an issue there and update the example to not use any 3rd party dependency (such as React or react-popper)? Thanks
Reproduction demo
https://codesandbox.io/s/nostalgic-hugle-9n0ns?file=/src/Menu.js
Steps to reproduce the problem
What is the expected behavior?
The nested poppers' position should update with the reference element as the page is scrolled.
What went wrong?
Removing
position: absolute
oroverflow: scroll
from the parent div is a workaround.Any other comments?
It's likely that this is an issue with
@popperjs/core
, notreact-popper
.Package versions