Skip to content

MenuFlyoutItem stops working after navigating away from and back to page #21675

Description

@beeradmoore

Description

Having a menu in a desktop application breaks when you navigate to a second page and back to a first page. I didn't do further tests to see what other situations this may break in, this is only tested with Navigation.PushAsync and Navigation.PopAsync style navigations.

Problem impacts both Windows and macOS.

Example videos

Windows:

Recording.2024-04-06.160429.mp4

macOS:

Screen.Recording.2024-04-06.at.4.11.32.PM.mov

Steps to Reproduce

  1. Create MAUI app
  2. Add 2 pages and a way to navigate between them
  3. Add MenuBarItem and MenuFlyoutItem on the first page
  4. Set that MenuFlyoutItem to do something
  5. Run application, go to second page and back to first

That MenuFlyoutItem appears to no longer do anything.

Link to public reproduction project repository

https://github.com/beeradmoore/maui-issue-MenuBarStopsWorkingAfterNavigation

Version with bug

8.0.14

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows, macOS

Affected platform versions

Windows 11, macOS 14.4.1

Did you find any workaround?

Have not looked

Relevant log output

No response

Metadata

Metadata

Labels

area-controls-menubarDesktop MenuBarItemspartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/macosmacOS / Mac Catalystplatform/windowss/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

Status
Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions