diff --git a/src/editor/core/event/GlobalEvent.ts b/src/editor/core/event/GlobalEvent.ts index 1b72d72..671554a 100644 --- a/src/editor/core/event/GlobalEvent.ts +++ b/src/editor/core/event/GlobalEvent.ts @@ -139,7 +139,10 @@ export class GlobalEvent { private _handleVisibilityChange = () => { if (document.visibilityState) { - this.cursor?.drawCursor() + const isCollapsed = this.range.getIsCollapsed() + this.cursor?.drawCursor({ + isShow: isCollapsed + }) } }