ContentPage.OnAppearing is not getting called when going back from Content page of type Modal page #13668
Labels
area-controls-modal
area-navigation
NavigationPage
platform/android 🤖
platform/iOS 🍎
t/bug
Something isn't working
Milestone
Description
ContentPage.OnAppearing is not getting called when going back from Content page of type Modal page.
Steps to Reproduce
Download solution here
https://github.com/muffadal53/MAUIOnAppearingModalBug.git
Run solution
On MainPage, click on button "Open Second Page" to go the Parent Page
Alert message is displayed with text "OnAppearing of Parent Page".
From ParentPage, click on "Open Modal" button to open Content page which is made Modal using "Shell.PresentationMode="Modal" in xaml.
Alert message is displayed with text "OnDisappearing of Parent Page".
On modal page, click on "Cross" button image.
On Parent page should display alert "OnAppearing of Parent Page" but it is not displayed --> This is Not OK
Link to public reproduction project repository
https://github.com/muffadal53/MAUIOnAppearingModalBug.git
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android
Affected platform versions
Android 11, iOS 16
Did you find any workaround?
N/A
Relevant log output
No response
The text was updated successfully, but these errors were encountered: