You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As my application grows larger and continues to grow out of the restrictions of headlessui, I have run into another problem that is currently not possible to help without moving to another package. Namely, there can only be one portal root. If I open a dialog in a new window, it will appear in the main window because that is where the portal root is.
Currently there is no way to provide a new portal root. You can only add an element with the ID headlessui-portal-root before ever using any headlessui portal components at all.
I would love a way to provide a new portal root, probably via react contexts.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
As my application grows larger and continues to grow out of the restrictions of headlessui, I have run into another problem that is currently not possible to help without moving to another package. Namely, there can only be one portal root. If I open a dialog in a new window, it will appear in the main window because that is where the portal root is.
Currently there is no way to provide a new portal root. You can only add an element with the ID
headlessui-portal-root
before ever using any headlessui portal components at all.I would love a way to provide a new portal root, probably via react contexts.
Beta Was this translation helpful? Give feedback.
All reactions