diff --git a/packages/react/src/hooks/useRemoteCursorStateStore.ts b/packages/react/src/hooks/useRemoteCursorStateStore.ts index eff74810..f01b86a0 100644 --- a/packages/react/src/hooks/useRemoteCursorStateStore.ts +++ b/packages/react/src/hooks/useRemoteCursorStateStore.ts @@ -52,7 +52,7 @@ function createRemoteCursorStateStore< changed.forEach((clientId) => { const state = CursorEditor.cursorState(editor, clientId); - if (state === null) { + if (state === null || state.relativeSelection === null) { delete cursors[clientId.toString()]; return; }