diff --git a/src/structs/Item.js b/src/structs/Item.js index 7d821306..2881d191 100644 --- a/src/structs/Item.js +++ b/src/structs/Item.js @@ -624,6 +624,7 @@ export class ItemRef extends AbstractStructRef { this.id = createID(id.client, id.clock + offset) this.left = createID(this.id.client, this.id.clock - 1) this.content = this.content.splice(offset) + this.length -= offset } const left = this.left === null ? null : getItemCleanEnd(transaction, store, this.left)