Browse Source

Close submenu when pointer leaves.

pull/4160/head
Steven Kirk 6 years ago
parent
commit
d0edfa0447
  1. 4
      src/Avalonia.Controls/Platform/DefaultMenuInteractionHandler.cs

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

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

Loading…
Cancel
Save