Browse Source
Merge pull request #2059 from donandren/issues/2058
fix click on dropdown when dropdown in other popup fixes #2058
pull/2074/head
danwalmsley
8 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/DropDown.cs
|
|
|
@ -145,7 +145,7 @@ namespace Avalonia.Controls |
|
|
|
{ |
|
|
|
if (!e.Handled) |
|
|
|
{ |
|
|
|
if (((IVisual)e.Source).GetVisualRoot() is PopupRoot) |
|
|
|
if (_popup?.PopupRoot != null && ((IVisual)e.Source).GetVisualRoot() == _popup?.PopupRoot) |
|
|
|
{ |
|
|
|
if (UpdateSelectionFromEventSource(e.Source)) |
|
|
|
{ |
|
|
|
|