You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: Entering text in the editor scrolls to the first match when the search panel is open #9856
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
Reproduced on the Lexical Playground today (2026-11-18) with Chromium 151 and Lexical 0.53.
Steps:
Open playground.lexical.dev and click into the editor
Press Cmd/Ctrl+F to open the in-page find panel
Type any query that has matches — view scrolls to the first match
Scroll down so the first match is out of view
Click in the editor body and type a character
Expected: scroll position stays at the cursor. Actual: the view jumps back to the first match after every keystroke. The text is still inserted at the correct position (visible in the debug tree), but the view is pinned to the first match for the duration of the find session.
Notably, scrolling and clicking in the editor don't trigger the jump — only typing does. That points to the find plugin's editor update listener calling scrollIntoView on the current match on every content change, rather than restricting it to query or next/previous navigation.
Recording (shows the scroll-away → type → view-jump sequence, with the debug tree confirming text inserted at original cursor): https://scenerecap.com/s/3rm6cz24jj
Activity
[lexical-playground] Bug Fix: Typing with the find panel open keeps t…
[lexical-playground] Bug Fix: Typing with the find panel open keeps t…
scenerecap commentedon Nov 18, 2026
Reproduced on the Lexical Playground today (2026-11-18) with Chromium 151 and Lexical 0.53.
Steps:
Expected: scroll position stays at the cursor. Actual: the view jumps back to the first match after every keystroke. The text is still inserted at the correct position (visible in the debug tree), but the view is pinned to the first match for the duration of the find session.
Notably, scrolling and clicking in the editor don't trigger the jump — only typing does. That points to the find plugin's editor update listener calling
scrollIntoViewon the current match on every content change, rather than restricting it to query or next/previous navigation.Recording (shows the scroll-away → type → view-jump sequence, with the debug tree confirming text inserted at original cursor): https://scenerecap.com/s/3rm6cz24jj