mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Ensure that submitOps is called in a timeout (#15840)
GitOrigin-RevId: f4b5f9649a18e5e0ea2332b6e8c90426d7c055d6
This commit is contained in:
@@ -153,7 +153,7 @@ const submitOpsAfterEvent = (
|
|||||||
// TODO: could put this in an update listener instead, if the ShareJS doc has been updated by then?
|
// TODO: could put this in an update listener instead, if the ShareJS doc has been updated by then?
|
||||||
currentDoc.on(eventName, () => {
|
currentDoc.on(eventName, () => {
|
||||||
currentDoc.off(eventName)
|
currentDoc.off(eventName)
|
||||||
submitOps(currentDoc, ops, transaction)
|
window.setTimeout(() => submitOps(currentDoc, ops, transaction))
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user