dotnet / dotnet/maui

[Shell] Shell currently doesn't detect pushed pages inside a Modal NavigationPage

Open
#6,927 3 comments 0 reactions 0 assignees View on GitHub
area-controls-shell p/2 s/triaged t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

```C#
[Test]
public async Task DotDotNavigationWorksWithModalNavigationPage()
{
var shell = new TestShell();
shell.Items.Add(new ContentPage());
var modalPage = new Controls.NavigationPage(new ContentPage());

await shell.Navigation.PushModalAsync(modalPage);
await modalPage.PushAsync(new ContentPage());
await modalPage.PushAsync(new ContentPage());
await modalPage.PushAsync(new ContentPage());
await shell.GoToAsync("..");
}
```

Contributor guide

Open the contributing guide

Research direction

Start with the DotDotNavigationWorksWithModalNavigationPage test and trace shell.Navigation.PushModalAsync, modalPage.PushAsync, and shell.GoToAsync(".."). Determine the expected back-navigation result for the pushed pages, then add regression coverage showing that modal NavigationPage state is detected correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.