diff --git a/src/structs/Item.js b/src/structs/Item.js index 702c814e..c3859be1 100644 --- a/src/structs/Item.js +++ b/src/structs/Item.js @@ -739,6 +739,7 @@ export class ItemRef extends AbstractStructRef { this.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)