-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Shell Flyout Menu Visibility Issue When Navigating Between TabBar and Flyout Items #25510
Conversation
Hey there @vishnumenon2684! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
/backport to main |
Started backporting to main: https://github.com/dotnet/maui/actions/runs/11504316344 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the page is unavailable, preventing the flyout behavior from being reset.
I think with the way flyout behavior calculation works the fix here my be that we need to refire this Notify method once the CurrentPage becomes available again.
The FlyoutBehavior value takes into account if the FlyoutBehavior is set on the Page itself which I think might cause this to miscalculate if the user has set FlyoutBehavior on the realized ContentPage
@PureWeen, based on the suggestion I'm looking for an alternate fix. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rebase this for main please
Hi @PureWeen , I have rebased the PR to main. |
/rebase |
9502bef
to
a1e68e5
Compare
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a test?
I have added test cases @PureWeen |
/rebase |
c7eb89c
to
b7e03d0
Compare
/azp run |
/azp run |
Issue:
In the sample, if there are both flyout items and tab bar items in the Shell, navigating to a TabBar item causes the flyout menu icon to disappear. However, when navigating back to a flyout item, the flyout menu is not visible.
Root Cause:
When navigating to a TabBar item, the flyout behavior is set to Disabled. Upon returning to a flyout item, the flyout behavior is not restored. This issue was previously working fine but regressed due to PR-23863. In that PR, navigating using services clears the previous sections content cache, so when navigating back to the flyout page, the page is unavailable, preventing the flyout behavior from being reset.
Fix:
We have updated the NotifyFlyoutBehaviorObservers of the shell when disconnect is set to false to ensure that the flyout behavior is properly updated when the page is available
Fixes #25436