Scrolling problems when adding a block via layout builder

Created on 16 April 2021, over 3 years ago
Updated 5 September 2024, 3 months ago

Problem/Motivation

Seems to be some problems with viewport scroll behaviour when the add block sidebar is open

Steps to reproduce

1. Install 9.2.x
2. Enable layout builder on the article content type
3. Add an article node
4. Go to layout
5. Click Add block in the bottom section (sidebar opens)
6. Now try and scroll back to the top of the page

Expected
User scroll position is maintained

Actual
The viewport scrolls back down to the 'Add block' section when the user gets to the top of the page (coinciding with the header becoming fixed/unfixed?)

Proposed resolution

Prevent the auto scrolling that seems to be happening

At this point I believe its a problem with Olivero given I can't reproduce on Bartik

Browser - Chrome OSx Version 89.0.4389.90 (Official Build) (x86_64)

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
Layout builderΒ  β†’

Last updated about 11 hours ago

Created by

πŸ‡¬πŸ‡§United Kingdom aaron.ferris

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • JavaScript

    Affects the content, performance, or handling of Javascript.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

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

Production build 0.71.5 2024