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".

Comments

timurtripp created an issue.