Browse Source

fix click on dropdown when dropdown in other popup fixes #2058

pull/2059/head
Andrey Kunchev 8 years ago
parent
commit
4a57d4ddd0
  1. 2
      src/Avalonia.Controls/DropDown.cs

2
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))
{

Loading…
Cancel
Save