Popover in scrollable container #7953
Unanswered
stevegreco
asked this question in
Q&A
Replies: 1 comment 10 replies
-
Does your popover have an underlay? You could use that to block the scrolling. Otherwise, maybe a running example in codesandbox or stackblitz could help, I'm not sure how the Popover is inside the ScrollableContainer, they are portalled out to be under the body. |
Beta Was this translation helpful? Give feedback.
10 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.
-
When using the
Popover
inside of a scrollable container, I am curious what options are available with the props to prevent the container from allowing scroll to occur.As of today, the
overflow: hidden
is set on thehtml
element, which works perfectly if thePopover
is on the page, but in my scenario, we are placing the Popover inside of a scrollable container within the page. This results in the container still being scrollable when thePopover
is open, causing the positioning to break if the user scrolls. I am having trouble understanding which props might help address this.Here is a very basic example. My intention is that overflow: hidden is set on the
ScrollableContainer
as opposed tohtml
in this case.Beta Was this translation helpful? Give feedback.
All reactions