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
parent
commit
65a7a21be6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Avalonia.Controls/DropDown.cs

2
src/Avalonia.Controls/DropDown.cs

@ -145,7 +145,7 @@ namespace Avalonia.Controls
{ {
if (!e.Handled) if (!e.Handled)
{ {
if (((IVisual)e.Source).GetVisualRoot() is PopupRoot) if (_popup?.PopupRoot != null && ((IVisual)e.Source).GetVisualRoot() == _popup?.PopupRoot)
{ {
if (UpdateSelectionFromEventSource(e.Source)) if (UpdateSelectionFromEventSource(e.Source))
{ {

Loading…
Cancel
Save