Fixed SfPopup does not show up after repeated opening issue. #141
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Root Cause of the Issue
The issue occurs due to framework changes in version 9.0.50 [https://github.com/dotnet/maui/pull/20154].
We will set _popupOverlayContainer visibility to false after dismissing the popup.
We will set _popupOverlayContainer as the parent to popupView on display. Due to the framework changes, the IsVisible property of _popupView is set to false when reopening with the same instance of the popup, since _popupOverlayContainer visibility will now be false. We will set the visibility of _popupOverlayContainer to true in a later section and _popupViewvisibility will still remains false.
Description of Change
To resolve the issue, setting the IsVisible property of the _popupOverlayContainer to true when setting it as parent to the _popupView.
Issue Fixed
[Bug] SfPopup does not show up after repeated openning · Issue #139 · syncfusion/maui-toolkit
Screenshots
Before:
Screen.Recording.2025-03-26.161158.mp4
After:
Screen.Recording.2025-03-26.160629.mp4