Browse Source
Merge branch 'master' into expander-events
pull/9555/head
Max Katz
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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(); |
|
|
|
} |
|
|
|
|