From 500cec3e0b63e012f6572dcedb071befa114956e Mon Sep 17 00:00:00 2001 From: Hufe921 Date: Tue, 13 Aug 2024 21:28:49 +0800 Subject: [PATCH] fix: set editor mode option error #755 --- src/editor/core/draw/Draw.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/editor/core/draw/Draw.ts b/src/editor/core/draw/Draw.ts index d3ecd7e..f0ca513 100644 --- a/src/editor/core/draw/Draw.ts +++ b/src/editor/core/draw/Draw.ts @@ -302,6 +302,7 @@ export class Draw { this.clearSideEffect() this.range.clearRange() this.mode = payload + this.options.mode = payload this.render({ isSetCursor: false, isSubmitHistory: false