Skip to content

Commit 876c8a6

Browse files
committed
Avoids error on selection box
1 parent 2dda480 commit 876c8a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ts/ui/menu/MJContextMenu.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class MJContextMenu extends ContextMenu {
9191
*/
9292
public unpost() {
9393
super.unpost();
94-
this.mathItem.typesetRoot.blur();
94+
this.mathItem?.typesetRoot?.blur();
9595
this.mathItem = null;
9696
}
9797

0 commit comments

Comments
 (0)