Skip to content

Commit 6239f98

Browse files
authored
fix: add show state control in freezeMenu (#1184)
#1183
1 parent 6a252e2 commit 6239f98

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/core/src/extensions/SideMenu/SideMenuPlugin.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,11 @@ export class SideMenuProsemirrorPlugin<
491491
* attached to the same block regardless of which block is hovered by the
492492
* mouse cursor.
493493
*/
494-
freezeMenu = () => (this.view!.menuFrozen = true);
494+
freezeMenu = () => {
495+
this.view!.menuFrozen = true;
496+
this.view!.state!.show = true;
497+
this.view!.emitUpdate(this.view!.state!);
498+
};
495499
/**
496500
* Unfreezes the side menu. When frozen, the side menu will stay
497501
* attached to the same block regardless of which block is hovered by the

0 commit comments

Comments
 (0)