You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Initial Investigation:
The problem seems to be in the MenuItems Template. https://github.com/AvaloniaCommunity/Material.Avalonia/blob/dev/Material.Styles/MenuItem.xaml#L69
For the Popups of submenu IsLightDismissEnabled is set to true. The thing is that it doesn't need to be true because the top-level Popup has IsLightDismissEnabled=true and it is enough.
The light-dismiss layer seems to be causing a problem, not entirely sure why, but it is always false in the other MenuItem styles for Avalonia that I've seen.
The text was updated successfully, but these errors were encountered:
tpetruk
pushed a commit
to tpetruk/Material.Avalonia
that referenced
this issue
Jan 13, 2022
Steps to Reproduce:
ContextMenu
with 2 levels of menu items, e.g.:Actual Result:
A submenu keeps opening and closing in a loop:
https://user-images.githubusercontent.com/93399973/149335063-91430ffe-d780-4ca3-bb9f-e41ff503f202.mp4
Initial Investigation:
The problem seems to be in the
MenuItem
sTemplate
.https://github.com/AvaloniaCommunity/Material.Avalonia/blob/dev/Material.Styles/MenuItem.xaml#L69
For the
Popup
s of submenuIsLightDismissEnabled
is set totrue
. The thing is that it doesn't need to betrue
because the top-levelPopup
hasIsLightDismissEnabled=true
and it is enough.The light-dismiss layer seems to be causing a problem, not entirely sure why, but it is always
false
in the other MenuItem styles for Avalonia that I've seen.The text was updated successfully, but these errors were encountered: