microsoft / microsoft-ui-xaml

Windows UI Library: the latest Windows 10 native controls and Fluent styles for your applications
MIT License
6.2k stars 668 forks source link

CommandBarFlyout doesn't close when a MenuFlyoutItem is clicked #9761

Open eduardobragaxz opened 4 weeks ago

eduardobragaxz commented 4 weeks ago

Describe the bug

If you have in you CommandBarFlyout some AppBarButton with a MenuFlyout, clicking a MenuFlyoutItem won't close the CommandBarFlyout. It just gets small.

Steps to reproduce the bug

  1. Create a CommandBarFlyout;
  2. Add an AppBarButton;
  3. Add a MenuFlyout to the AppBarButton and a MenuFlyoutItem to the MenuFlyout;
  4. Click the MenuFlyoutItem.

Expected behavior

It should close

Screenshots

https://github.com/microsoft/microsoft-ui-xaml/assets/50815710/062e846a-8c46-4905-947d-14c1628b4f28

NuGet package version

WinUI 3 - Windows App SDK 1.6 Experimental 1: 1.6.240531000-experimental1

Windows version

Windows 11 (22H2): Build 22621

Additional context

No response

github-actions[bot] commented 4 weeks ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.