fix:get position error when at selection boundary

pr675
黄云飞 4 years ago
parent 0238753b9f
commit aa31afdf0c

@ -189,7 +189,7 @@ export class Position {
}
return {
index: curPositionIndex,
isControl: elementList[curPositionIndex].type === ElementType.CONTROL
isControl: elementList[curPositionIndex]?.type === ElementType.CONTROL
}
}

Loading…
Cancel
Save