Skip to content

fix: place cursor at clicked pos inside tracked change#2855

Merged
harbournick merged 1 commit intomainfrom
artem/SD-2612
Apr 22, 2026
Merged

fix: place cursor at clicked pos inside tracked change#2855
harbournick merged 1 commit intomainfrom
artem/SD-2612

Conversation

@artem-harbour
Copy link
Copy Markdown
Contributor

@artem-harbour artem-harbour commented Apr 17, 2026

Linear: SD-2612

Fix caret placement inside tracked-change text on click.

This updates EditorInputManager to treat direct clicks on tracked-change spans the same way we already treat direct single-thread comment highlights (SD-2442): do not short-circuit to setCursorById, and let normal click-to-position place the caret at the clicked location.

Also fixes repeat-click behavior so subsequent direct clicks inside the same tracked change continue to reposition the caret instead of being ignored by the active-thread repeat-click guard.

Includes unit test updates in EditorInputManager.activeCommentClick.test.ts to cover:

  • direct tracked-change click falls through to generic caret placement
  • repeat direct click on active tracked change still repositions caret

@artem-harbour artem-harbour self-assigned this Apr 17, 2026
@linear
Copy link
Copy Markdown

linear Bot commented Apr 17, 2026

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@artem-harbour artem-harbour marked this pull request as ready for review April 17, 2026 12:25
@artem-harbour artem-harbour force-pushed the artem/SD-2612 branch 3 times, most recently from 14be365 to aa36d9c Compare April 21, 2026 08:02
Copy link
Copy Markdown
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 bbb7e94 into main Apr 22, 2026
55 checks passed
@harbournick harbournick deleted the artem/SD-2612 branch April 22, 2026 00:45
@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Apr 22, 2026

🎉 This PR is included in @superdoc-dev/react v1.2.0-next.37

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Apr 22, 2026

🎉 This PR is included in vscode-ext v2.3.0-next.39

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Apr 22, 2026

🎉 This PR is included in superdoc v1.28.0-next.2

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Apr 22, 2026

🎉 This PR is included in superdoc-cli v0.8.0-next.2

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Apr 22, 2026

🎉 This PR is included in esign v2.4.0

The release is available on GitHub release

superdoc-bot Bot pushed a commit that referenced this pull request Apr 22, 2026
### Bug Fixes

- restore published config typings
- place cursor at clicked pos inside tracked change (#2855)
- wait for in-flight cleanup in dispose() (#2892)

### Changes

- Merge remote-tracking branch 'origin/main' into merge/main-into-stable-2026-04-22

### Features

- add tab character to tab node conversion in text insert (#2832)
@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Apr 22, 2026

🎉 This PR is included in superdoc-sdk v1.7.0

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Apr 22, 2026

🎉 This PR is included in superdoc v1.28.0

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Apr 22, 2026

🎉 This PR is included in template-builder v1.6.0

The release is available on GitHub release

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