fluentui-blazor icon indicating copy to clipboard operation
fluentui-blazor copied to clipboard

Menu Button clicking away once menu open

Open Rocky-25 opened this issue 2 years ago • 3 comments

🐛 Bug Report

When clicking on a menu button the menu shows, however when clicking anywhere else on the page the menu button stays visible. Shouldn't it close in a similar way a combo box does?

Rocky-25 avatar Feb 27 '24 17:02 Rocky-25

This is already the case. If you go to https://fluentui-blazor.net/menu and click on the "Open menu" button, it closes when you click outside the menu (on the page). The only case that wasn't handled until this morning is Right-Click, and this will be the case in the next version: #1574

dvoituron avatar Feb 27 '24 17:02 dvoituron

Hi, I was talking about MenuButton not Menu. This doesn't close once opened. https://fluentui-blazor.net/MenuButton

Rocky-25 avatar Feb 28 '24 09:02 Rocky-25

Hi,

I'll create a PR which adds an Overlay (Fullscreen, Transparant) to the MenuButton. That way, once the menu is shown, you can click outside of it to close it:

issue-#1594

vnbaaij avatar Feb 28 '24 09:02 vnbaaij