From 50b0dc21fd0a698f87538e5458274ed50ab6774e Mon Sep 17 00:00:00 2001 From: OlegIvaniv Date: Fri, 28 Jul 2023 18:31:57 +0200 Subject: [PATCH] fix(editor): Fix code node highlight error (#6791) Signed-off-by: Oleg Ivaniv --- .../editor-ui/src/components/CodeNodeEditor/CodeNodeEditor.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor-ui/src/components/CodeNodeEditor/CodeNodeEditor.vue b/packages/editor-ui/src/components/CodeNodeEditor/CodeNodeEditor.vue index 6e21e94099..6d2dea0f31 100644 --- a/packages/editor-ui/src/components/CodeNodeEditor/CodeNodeEditor.vue +++ b/packages/editor-ui/src/components/CodeNodeEditor/CodeNodeEditor.vue @@ -166,7 +166,7 @@ export default defineComponent({ if (lineNumber === 'final') { this.editor.dispatch({ - selection: { anchor: this.content.length }, + selection: { anchor: (this.modelValue ?? this.content).length }, }); return; }