Skip to content

Commit c86101e

Browse files
committed
fix: collaborative cursor position
1 parent 9989e55 commit c86101e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cursor-plugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ export function cursorToAbsolutePosition(
346346

347347
targetChildId = parentNode.id;
348348
loroNode = parentNode.parent()?.parent() as LoroNode | undefined;
349+
index = 0;
349350
} else {
350351
const loroText = doc.getText(containerId);
351352
const pos = doc.getCursorPos(cursor);

0 commit comments

Comments
 (0)