fix #344 - formatting attribute assign bug

This commit is contained in:
Kevin Jahns
2021-11-06 14:35:04 +01:00
parent 320e8cbe18
commit 8abf5b85ff
2 changed files with 37 additions and 2 deletions

View File

@@ -706,9 +706,9 @@ export class YTextEvent extends YEvent {
addOp()
}
if (value === null) {
attributes[key] = value
} else {
delete attributes[key]
} else {
attributes[key] = value
}
} else {
item.delete(transaction)