How to set portalProps for use with useFullScreen #527
Unanswered
edwardcrichton
asked this question in
Q&A
Replies: 0 comments
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.
-
Hi,
I've got a wrapper element that is the reference target for useFullScreen. The children of that wrapper includes a target for portals, as well as some modals and a mantine-react-table (2.0.0-beta.9) . When going to full screen mode, setting portalProps={{target: "#the-target-for-portals"}} on Modals and Comboboxes etc puts these in the target for portals so that they display when in fullscreen mode (rather than being attached to the portals target in body).
My question is: how to set portalProps target for a MantineReactTable ? Without this, all of the menus don't appear because they are not children of the element the useFullScreen is focusing on.
Thanks,
Ed
Beta Was this translation helpful? Give feedback.
All reactions