Bug: Clicking on the image in mobile scrolls up
Author: levenstaCreated Sep 1, 2026Updated Sep 1, 2026
Lexical version: 0.49 lastest, iOS 26
Steps To Reproduce
- Insert the image in the playground
- Click on the image
The current behavior
NodeSelection is activated, the browser scrolls up and the image exits the viewport
https://github.com/user-attachments/assets/372d155c-3156-411a-a391-44b2c4acc0d5
The expected behavior
There shouldn't be any scrolling when clicking on a decorator that activates NodeSelection. Ideally, there should be scrolling to the visible node, but perhaps this should be handled individually by each node.
Impact of fix
The issue occurs when clicking on any nodes that use the BlockWithAlignableContents wrapper or useLexicalNodeSelection with a click handler as in the image. Such nodes become unusable and the user has to scroll to them every time he wants to select them with a touch
Source: facebook/lexical