Utilizing the Popover when the body changes size
#9209
Unanswered
stevegreco
asked this question in
Q&A
Replies: 1 comment 4 replies
-
|
you could fire a resize event manually, or you can use the prop do either of those work for you? one issue I could see happening though is that with a popover open, you can't scroll. It'd be better probably to put the list into its own scrolling region so it isn't the entire page |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We are utilizing the
Popoverto toggle some filters on/off. When the filters are applied, the page size (document.body) changes size pretty dramatically. My understanding that because thePopoveruses thebodyto position itself, this might just not work at all.Our
Popoveris in a "sticky" header, the basic flow is that a user might scroll1000pxdown the page, apply a filter, which in turn reduces the size of the page.I attached a video here of how this is currently working, but basically the root issue is that the
bodyshrinks down when applying the filter and the positioning of thePopoveris then incorrect.Edit: adding CodeSandbox link. https://codesandbox.io/p/sandbox/agitated-carson-96jpl6
Screen.Recording.2025-11-18.at.4.14.56.PM.mov
Beta Was this translation helpful? Give feedback.
All reactions