mirror of
https://github.com/yjs/yjs.git
synced 2025-12-29 00:25:01 +01:00
item: increase parent length only if parentSub=null
This commit is contained in:
@@ -441,7 +441,7 @@ export class Item {
|
||||
}
|
||||
}
|
||||
// adjust the length of parent
|
||||
if (parent.length !== undefined && this._countable) {
|
||||
if (parentSub === null && parent.length !== undefined && this._countable) {
|
||||
parent.length += this._length
|
||||
}
|
||||
if (parent._deleted) {
|
||||
|
||||
Reference in New Issue
Block a user