fix:get position error when at selection boundary
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user