fix:get position error when at selection boundary

This commit is contained in:
黄云飞
2022-05-09 18:26:52 +08:00
parent 0238753b9f
commit aa31afdf0c
+1 -1
View File
@@ -189,7 +189,7 @@ export class Position {
} }
return { return {
index: curPositionIndex, index: curPositionIndex,
isControl: elementList[curPositionIndex].type === ElementType.CONTROL isControl: elementList[curPositionIndex]?.type === ElementType.CONTROL
} }
} }