From fd6c34cfa37f26235305da24639f269662057604 Mon Sep 17 00:00:00 2001 From: Flrande <1978616327@qq.com> Date: Tue, 15 Apr 2025 08:22:39 +0000 Subject: [PATCH] fix(editor): v-element may get undefined inline editor (#11697) --- blocksuite/framework/std/src/inline/components/v-element.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocksuite/framework/std/src/inline/components/v-element.ts b/blocksuite/framework/std/src/inline/components/v-element.ts index 5bd2a020be..1c6a71961f 100644 --- a/blocksuite/framework/std/src/inline/components/v-element.ts +++ b/blocksuite/framework/std/src/inline/components/v-element.ts @@ -23,7 +23,7 @@ export class VElement< this.disposables.add( effect(() => { - const inlineRange = this.inlineEditor.inlineRange$.value; + const inlineRange = this.inlineEditor?.inlineRange$.value; this.selected.value = !!inlineRange && isInlineRangeIntersect(inlineRange, {