Skip to content

Tapping on a block inside Lexical on mobile triggers scroll up #15631

@otozyon

Description

@otozyon

Describe the Bug.

Tapping on a block inside lexical, e.g. on a post in the default website template, on mobile triggers an automatic scroll up on the page. The block that has just been tapped on scrolls out of view. It's very disorienting.

The expected behaviour would be that no scroll up occurs and the block stays in view.

The scroll up does not happen when tapping into richt text.

I also think it's unnecessary and disorienting that a tap on a block (to make it expand or collapse) assumes I want to go into editing mode. I don't. I just want to take a look at the extended block or collapse it again. I guess currently every tap into Lexical's editing window assumes that I want to go into editing mode.

Image

Reproduction Steps

  1. Install default website template
  2. Edit a post in the admin UI on mobile
  3. Tap on a block inside Lexical, preferably one that's further down the page (otherwise the scroll up might not be that noticeable)

Environment Info

payload: 3.73.0
Node: 25.3.0
next: 15.4.10

Metadata

Metadata

Assignees

Labels

Bugarea: uiRelated to the admin panel.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions