-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I make elements such as select menus, tooltip, etc. render in a specific DOM element? #11454
Comments
@goyney We can add a |
@oliviertassinari What about with We make a specific element fullscreen using Chrome's fullscreen API, but everything outside of that div isn't shown there. We aren't in a position to move the fullscreen element further up, so we need to bring all the component in. |
The select is using the portal too. Select > Menu > Popover > Modal > Portal |
Could you give an example of how that might work? Neither of these seem to work:
EDIT: Looking forward to the tooltip change. |
We have a similar issue with Tooltips, For now we use react-helmet on such tables to set body overflow
I'm wondering is any other use cases exists to place tooltips into some parent div. If not, And allow somehow (via themes, id, classname etc) to style that node globally? Also may be that must be default behaviour, as it was really hard to find what causes body overflow. |
The DOM elements for
Tooltip
s,Select
s, etc render in thebody
tag in the DOM. I need them scoped into another DOM element. How can I achieve this?I was able to achieve this with
Modal
s by specifying thecontainer
attribute and pointing to aref
, but this does not work for other elements. Additionally, wrapping things in aPortal
does not do anything.No dice:
The text was updated successfully, but these errors were encountered: