mirror of
https://github.com/yjs/yjs.git
synced 2026-09-01 19:50:38 +02:00
[applyDelta] fix skipping over uncountables
This commit is contained in:
@@ -1047,7 +1047,7 @@ export class YType {
|
||||
deleteText(transaction, currPos, op.delete)
|
||||
} else if (delta.$modifyOp.check(op)) {
|
||||
let item = currPos.right
|
||||
while (item?.deleted && !item.countable) { item = item.next }
|
||||
while (item != null && (item.deleted || !item.countable)) { item = item.next }
|
||||
if (item == null || item.content.constructor !== ContentType) { error.unexpectedCase() }
|
||||
/** @type {ContentType} */ (item.content).type.applyDelta(op.value)
|
||||
currPos.formatText(transaction, /** @type {any} */ (this), 1, op.format || {})
|
||||
|
||||
Reference in New Issue
Block a user