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
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