Fix cursor delete (#44)

This commit is contained in:
Ulion
2021-01-15 21:10:29 +08:00
committed by GitHub
parent e415684d64
commit 24dca9a49c

View File

@@ -150,7 +150,7 @@ export const AutomergeEditor = {
const doc = e.docSet.getDoc(docId)
const changed = Automerge.change<SyncDoc>(doc, (d: any) => {
delete d.cusors
delete d.cursors
})
e.onCursor && e.onCursor(null)