From 44086c309cfb02aecaaad9b075628576ddd6ff2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E4=BA=91=E9=A3=9E?= Date: Wed, 13 Apr 2022 17:45:58 +0800 Subject: [PATCH] fix:control actived error at table boundary --- src/editor/core/range/RangeManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/core/range/RangeManager.ts b/src/editor/core/range/RangeManager.ts index 34d6507..4d8e778 100644 --- a/src/editor/core/range/RangeManager.ts +++ b/src/editor/core/range/RangeManager.ts @@ -59,7 +59,7 @@ export class RangeManager { if (~startIndex && ~endIndex && startIndex === startIndex) { const elementList = this.draw.getElementList() const element = elementList[startIndex] - if (element.type === ElementType.CONTROL) { + if (element?.type === ElementType.CONTROL) { control.initControl() return }