Skip to content

Bug: Entering text in the editor scrolls to the first match when the search panel is open #9856

Open

Description

@levensta

Lexical version: 0.53.0

Steps To Reproduce

  1. Fill the editor with text so that a scrollbar appears on the page
  2. Press Ctrl + F and enter a word that appears at the beginning of the document
  3. Scroll down and enter some text

Link to code example

The current behavior

Editor scrolls up to the first match. Possibly due to a recalculation of the matches signal, which triggers an update to highlights

search-scrolls-up.mp4

The expected behavior

If the panel is open, entering text or changing the editor's state should not trigger the view to scroll again to the match identified by effectiveIndex

Impact of fix

The current behavior hinders the user experience and prevents content from being edited while the search-and-replace panel is open

Activity

  1. added 2 commits that reference this issue on Nov 10, 2026
    e42892e
    d47bfcb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions