diff --git a/src/Avalonia.Controls/DropDown.cs b/src/Avalonia.Controls/DropDown.cs index 5b7213257d..8596d06d2c 100644 --- a/src/Avalonia.Controls/DropDown.cs +++ b/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)) {