Commit f99181f
authored
Fixed useUnsetCursorPositionOnBlur not hiding cursors.
`useUnsetCursorPositionOnBlur` does not hide cursors when the remote editor blurs. This happens because `useUnsetCursorPositionOnBlur` only sets the cursor state field to `null` on blur, but does not set the client data field to `null`, which prevents the client from being deleted from the awareness state.
One possible fix is to delete both fields on blur.
Another possible fix (this PR) is to remove the cursor if the selection range gets deleted.1 parent 17947af commit f99181f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
0 commit comments