We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bc7307f + 6218ba3 commit ec69ebcCopy full SHA for ec69ebc
MaterialDesignThemes.Wpf/PopupBox.cs
@@ -644,9 +644,12 @@ private static void OnLostMouseCapture(object sender, MouseEventArgs e)
644
645
if (Equals(e.OriginalSource, popupBox))
646
{
647
- if (Mouse.Captured == null || popupBox._popup == null || !(Mouse.Captured as DependencyObject).IsDescendantOf(popupBox._popup))
+ if (Mouse.Captured == null || popupBox._popup == null)
648
649
- popupBox.Close();
+ if (!(Mouse.Captured as DependencyObject).IsDescendantOf(popupBox._popup))
650
+ {
651
+ popupBox.Close();
652
+ }
653
}
654
655
else
0 commit comments