Page scrolls down to an arbitrary spot when configuring a block

Created on 3 October 2025, 9 days ago

Problem/Motivation

In Safari on MacOS, configuring a block can result in scrolling down to an arbitrary spot on the page, disrupting the workflow of content editors by requiring them to scroll up and find the block they just saved.

Steps to reproduce

Was able to reproduce this in a clean install of Drupal CMS via Drupal Forge.

  1. Install Layout Builder Modal
  2. Open site in Safari on MacOS (Safari 18 tested)
  3. Click "Configure" on a block in Layout Builder on a content page (will need to create the page and add the block first). This particular block may need to have a bigger configuration form to force a scrollbar to appear within the modal.
  4. Click "Apply" or exit out of the configuration modal.

You should find the page behind the modal has scrolled down to an arbitrary spot, rather than remaining where it was when you clicked "Configure".

Proposed resolution

Ensure the scroll position of the page behind the modal remains where it was when the user clicked "Configure".

πŸ› Bug report
Status

Active

Version

2.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States timurtripp

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024