You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Popover in fixed header scrolls with the body #3924
Popover (like AppMenu or UserMenu) located in a fixed Header component isn't properly anchored. It scrolls with the document body. I've prepared a reproduction codesandbox, which is a slightly modified code from the docs. To reproduce the issue please open the user menu and then scroll the document.
EuiPopover has a repositionOnScroll prop that you can set which will re-compute the popover's position when the window's scroll event fires. I tested it on the sandbox you shared (thank you for including one!) to verify it works as expected in your setup.
Activity
chandlerprall commentedon Aug 17, 2020
EuiPopoverhas arepositionOnScrollprop that you can set which will re-compute the popover's position when the window's scroll event fires. I tested it on the sandbox you shared (thank you for including one!) to verify it works as expected in your setup.damianszocik commentedon Aug 18, 2020
I haven't noticed the prop in the docs, my bad. Of course, adding it solves the issue, Thanks a lot @chandlerprall !
ince01 commentedon Oct 20, 2020
How to fix this issue? I tried adding
repositionOnScrollprop but it still does not work properly