How Do You Position Popover-like Components Relative to the Viewport Without Using Portal? #2584
-
I'm realizing that a lot of focus related issues relating from nesting popover-like components (etc. dialog, select...) can be avoided by only ensuring the topmost component is portalled. However the downside of this is that if the child popover does not have the portalled attribute, it becomes constrained within the dimensions of the parent popover. How can I override the positioner style that the child popover uses so that it is positioned relative to the entire viewport without using the portalled attribute? I noticed that the component has a container prop. Can we have something like that for PopoverLikeComponent.Positioner as well? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There are two options:
|
Beta Was this translation helpful? Give feedback.
There are two options:
position:fixed
on the contentpositioning.fixed
totrue
to the root