Browse Source

Merge branch 'master' into expander-events

pull/9555/head
Max Katz 3 years ago
committed by GitHub
parent
commit
38a52fbb59
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Avalonia.Controls/Platform/DefaultMenuInteractionHandler.cs

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

@ -461,7 +461,7 @@ namespace Avalonia.Controls.Platform
{
if (Menu?.IsOpen == true)
{
if (e.Source is ILogical control && Menu.IsLogicalAncestorOf(control))
if (e.Source is ILogical control && !Menu.IsLogicalAncestorOf(control))
{
Menu.Close();
}

Loading…
Cancel
Save