diff --git a/src/cursor-plugin.ts b/src/cursor-plugin.ts index 457955a..189be01 100644 --- a/src/cursor-plugin.ts +++ b/src/cursor-plugin.ts @@ -282,7 +282,9 @@ function absolutePositionToCursor( const loroId = WEAK_NODE_TO_LORO_CONTAINER_MAPPING.get(nodeParent) ?? getByValue(mapping, nodeParent); if (!loroId) { - console.error("Cannot find the loroNode"); + if (nodeParent.nodeSize > 4) { + console.error("Cannot find the loroNode"); + } return; }