Skip to content

Commit e4fa0ec

Browse files
Update Page.cs
1 parent 942aa6a commit e4fa0ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Controls/src/Core/Page/Page.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,7 @@ internal void SendNavigatedFrom(NavigatedFromEventArgs args, bool disconnectHand
804804
if (args.NavigationType == NavigationType.Pop ||
805805
args.NavigationType == NavigationType.PopToRoot)
806806
{
807+
#if IOS
807808
// Don't dispose Handlers too early on iOS!
808809
// iOS aggressively cleans up page Handlers during navigation, but if the page
809810
// is still in Shell's navigation stack, users can navigate back to it.
@@ -819,6 +820,7 @@ internal void SendNavigatedFrom(NavigatedFromEventArgs args, bool disconnectHand
819820
return;
820821
}
821822
}
823+
#endif
822824

823825
if (!this.IsLoaded)
824826
{

0 commit comments

Comments
 (0)