Skip to content

Commit 102e900

Browse files
committed
Merge branch 'PopupBox' of https://github.com/CarHel/MaterialDesignInXamlToolkit into CarHel-PopupBox
2 parents 3566eb5 + 695070b commit 102e900

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)