Skip to content

Commit 44a6281

Browse files
negasoravkbansal
authored andcommitted
Check that the menu should be visible when setting display properties (#289)
1 parent 2de6c97 commit 44a6281

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ContextMenu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default class ContextMenu extends AbstractMenu {
7878
});
7979
});
8080
} else {
81-
if (!this.menu) return;
81+
if (!this.menu || !this.state.isVisible) return;
8282
this.menu.style.opacity = 0;
8383
this.menu.style.pointerEvents = 'none';
8484
}

0 commit comments

Comments
 (0)