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
Exception "MauiContext should have been set on parent" when removing a child from its parent layout on iOS
Description:
When a child is removed from its parent layout on iOS, an exception "MauiContext should have been set on parent" is thrown. Upon investigation, it seems that the issue arises during the cleanup process by Maui when attempting to clean a child that has already been cleaned by Mopups.
Proposed Solution:
To address this issue, I suggest stopping listening the 'DescendantRemoved' event and the child handler cleanup in the iOS implementation of IPopupPlatform. By doing so, Maui will be able to properly handle the cleanup of the removed view.
Tap the 'Add/Remove label' button.
A label will be added with the first tap, but after the second the app will crash trying to remove the label from its parent layout.
The text was updated successfully, but these errors were encountered:
Exception "MauiContext should have been set on parent" when removing a child from its parent layout on iOS
Description:
When a child is removed from its parent layout on iOS, an exception "MauiContext should have been set on parent" is thrown. Upon investigation, it seems that the issue arises during the cleanup process by Maui when attempting to clean a child that has already been cleaned by Mopups.
Proposed Solution:
To address this issue, I suggest stopping listening the 'DescendantRemoved' event and the child handler cleanup in the iOS implementation of IPopupPlatform. By doing so, Maui will be able to properly handle the cleanup of the removed view.
Environment:
Repro
ReproMopups.zip
Steps to reproduce
A label will be added with the first tap, but after the second the app will crash trying to remove the label from its parent layout.
The text was updated successfully, but these errors were encountered: