maui
maui copied to clipboard
[iOS] MenuItem Command not executed with FlyoutHeader set
Description
I have a .NET MAUI App with a Shell and several MenuItems. Without a FlyoutHeader, every Command bound to the MenuItems is executed. With a defined FlyoutHeader however, the first (i.e. topmost) MenuItem-Command does not get executed (same for FlyoutItems)
Steps to Reproduce
- Create a new .NET MAUI App
- Add a Shell with Flyout- and MenuItems
- Add A FlyoutHeader (e.g. a Label)
- The command bound to the first item (i.e. topmost item, be it a MenuItem or a FlyoutItem) will not get executed on iOS. On Android, it works fine.
Link to public reproduction project repository
https://github.com/owl-guy/FlyoutWithHeaderExample
Version with bug
8.0.3
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 17
Did you find any workaround?
No
Relevant log output
No response
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.
Verified this on Visual Studio Enterprise 17.9.0 Preview 2(8.0.3). Repro on iOS 17.0 and MacCatalyst, not repro on Android 14.0-API34 and Windows 11 with below Project: FlyoutWithHeaderExample.zip
Will someone work on this?