Skip to content

Conversation

@renasami
Copy link

@renasami renasami commented May 24, 2025

Description
Fixed an issue where the editor would scroll to the previous focus position when rendering long text.

Issue
Fixes: 5826

Example
Current behaviors

2025-05-25.2.06.23.mov

Fixed behaviors

2025-05-25.2.01.34.mov

Context
It was missing scroll logic to the new caret position.

Checks

  • The new code matches the existing patterns and styles.
  • The tests pass with yarn test.
  • The linter passes with yarn lint. (Fix errors with yarn fix.)
  • The relevant examples still work. (Run examples with yarn start.)
  • You've added a changeset if changing functionality. (Add one with yarn changeset add.)

@changeset-bot
Copy link

changeset-bot bot commented May 24, 2025

🦋 Changeset detected

Latest commit: cf6b5ad

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
slate-react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unexpected auto-scrolling behavior when refocus the editor

1 participant