Skip to content

Commit a7ae250

Browse files
committed
make popup box a bit safer [skip ci]
1 parent 8b2496d commit a7ae250

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
@@ -417,7 +417,7 @@ protected override void OnIsKeyboardFocusWithinChanged(DependencyPropertyChanged
417417

418418
protected override void OnMouseEnter(MouseEventArgs e)
419419
{
420-
if (IsEnabled &&
420+
if (IsEnabled && IsLoaded &&
421421
(PopupMode == PopupBoxPopupMode.MouseOverEager
422422
|| PopupMode == PopupBoxPopupMode.MouseOver))
423423
{

0 commit comments

Comments
 (0)