Skip to content

Commit 695070b

Browse files
author
Helder Carvalho
committed
PopupBox mouse capture fix
1 parent 8e2e16f commit 695070b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MaterialDesignThemes.Wpf/PopupBox.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ private static void OnLostMouseCapture(object sender, MouseEventArgs e)
657657
}
658658
else
659659
{
660-
if (popupBox.StaysOpen)
660+
if (popupBox.StaysOpen && popupBox.IsPopupOpen)
661661
{
662662
// Take capture back because click happend outside of control
663663
Mouse.Capture(popupBox, CaptureMode.SubTree);

0 commit comments

Comments
 (0)