Browse Source

Close submenu when pointer leaves.

stable/outsystems-0.9
Steven Kirk 6 years ago
parent
commit
c2682ff2a2
  1. 4
      src/Avalonia.Controls/Platform/DefaultMenuInteractionHandler.cs

4
src/Avalonia.Controls/Platform/DefaultMenuInteractionHandler.cs

@ -337,6 +337,10 @@ namespace Avalonia.Controls.Platform
{
item.Parent.SelectedItem = null;
}
else if (!item.IsPointerOverSubMenu)
{
item.IsSubMenuOpen = false;
}
}
}

Loading…
Cancel
Save