Skip to content
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

Fix Mountpoint in Portals #837

Merged
merged 1 commit into from Jan 3, 2024
Merged

Fix Mountpoint in Portals #837

merged 1 commit into from Jan 3, 2024

Conversation

metin-kale
Copy link
Collaborator

In #829 we implemented a special scope inheritance for portal containers.
Because of that the MountPoint (which is stored as Scope) was also overwritten.

The MountPoint is also used for afterMounts/afterUnmounts, which are currently broken in portals. Therefore FocusTrap does also not always work in Modals.

With this PR the MountPoint in Portals got fixed, so that afterMounts/afterUnmounts continue to work as expected

@henryB99
Copy link
Collaborator

henryB99 commented Jan 3, 2024

Looks good to me. I would prefer not exposing MOUNT_POINT_KEY, but I see no other alternative.

@metin-kale metin-kale merged commit d5c1d52 into master Jan 3, 2024
2 checks passed
@Lysander Lysander added this to the 1.0-RC13 milestone Jan 3, 2024
@Lysander Lysander assigned Lysander and metin-kale and unassigned Lysander Jan 3, 2024
@Lysander Lysander added the bug Something isn't working label Jan 3, 2024
@Lysander Lysander deleted the portalScope branch January 3, 2024 12:43
@Lysander Lysander changed the title fix mountpoint in portals Fix Mountpoint in Portals Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants