Skip to content

Conversation

@artem-harbour
Copy link
Contributor

@artem-harbour artem-harbour commented Jan 28, 2026

Linear: SD-1439.

This PR fixes several issues.

  • Do not render the caret initially when there is no editor focus.
  • Set editor focus before selection to set the caret correctly. This fixes the first editor click issue so that the caret appears at the click location rather than at the beginning of the document.
  • Update selection/caret on editor focus/blur. This fixes the issue with caret rendering when focus is not on the editor.

@artem-harbour artem-harbour self-assigned this Jan 28, 2026
@linear
Copy link

linear bot commented Jan 28, 2026

@artem-harbour artem-harbour marked this pull request as ready for review January 28, 2026 15:48
Copy link
Collaborator

@harbournick harbournick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@harbournick harbournick merged commit 3f627fb into main Jan 29, 2026
4 of 5 checks passed
@harbournick harbournick deleted the artem/SD-1439 branch January 29, 2026 05:48
harbournick pushed a commit that referenced this pull request Jan 29, 2026
## [1.9.1-next.1](v1.9.0...v1.9.1-next.1) (2026-01-29)

### Bug Fixes

* **comments:** pass superdoc instance when canceling pending comment ([#1862](#1862)) ([4982bac](4982bac))
* selection/caret issues ([#1865](#1865)) ([3f627fb](3f627fb))
* use stable comment ids for imported comments ([#1863](#1863)) ([0c330d0](0c330d0))
@harbournick
Copy link
Collaborator

🎉 This PR is included in version 1.9.1-next.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

harbournick pushed a commit that referenced this pull request Jan 30, 2026
# [1.10.0](v1.9.0...v1.10.0) (2026-01-30)

### Bug Fixes

* **collaboration:** add debouncing to header/footer Y.Doc updates ([#1861](#1861)) ([90d0f65](90d0f65))
* comment text after enter break is dropped on render and export ([#1853](#1853)) ([ce7f553](ce7f553))
* **comments:** pass superdoc instance when canceling pending comment ([#1862](#1862)) ([4982bac](4982bac))
* horizontal rule ([#1875](#1875)) ([4b3b92e](4b3b92e))
* selection/caret issues ([#1865](#1865)) ([3f627fb](3f627fb))
* **super-editor:** preserve toolbar style marks when wrapping runs ([9dbcdd2](9dbcdd2))
* table width ([#1876](#1876)) ([46a635c](46a635c))
* use stable comment ids for imported comments ([#1863](#1863)) ([0c330d0](0c330d0))

### Features

* add CLAUDE.md/AGENTS.md navigation files for AI tools ([#1878](#1878)) ([db98d62](db98d62))
* **track-changes:** add emitCommentEvent option to suppress sidebar bubbles ([#1880](#1880)) ([87a2f24](87a2f24))
@harbournick
Copy link
Collaborator

🎉 This PR is included in version 1.10.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants