diff --git a/services/web/frontend/js/features/source-editor/extensions/changes/comments.ts b/services/web/frontend/js/features/source-editor/extensions/changes/comments.ts index c43aec78f8..3a5cd215b0 100644 --- a/services/web/frontend/js/features/source-editor/extensions/changes/comments.ts +++ b/services/web/frontend/js/features/source-editor/extensions/changes/comments.ts @@ -153,7 +153,7 @@ const submitOpsAfterEvent = ( // TODO: could put this in an update listener instead, if the ShareJS doc has been updated by then? currentDoc.on(eventName, () => { currentDoc.off(eventName) - submitOps(currentDoc, ops, transaction) + window.setTimeout(() => submitOps(currentDoc, ops, transaction)) }) }