Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/cursor-plugin.js
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ export const createDecorations = (state, awareness) => {
const ystate = ySyncPluginKey.getState(state)
const y = ystate.doc
const decorations = []
if (ystate.snapshot != null || ystate.binding === null) {
if (ystate.snapshot != null || ystate.prevSnapshot != null || ystate.binding === null) {
// do not render cursors while snapshot is active
return DecorationSet.create(state.doc, [])
}

0 comments on commit ce23412

Please sign in to comment.