Form errors for Layout Builder block forms should scroll viewport to top

Created on 26 June 2018, about 6 years ago
Updated 25 March 2023, over 1 year ago

Layout Builder should scroll users to the top of the config form when there's a form error.

Steps to repro:

  • Add a block to a LB enabled page. Use invalid data to force validation error. Block should have a long config form (long enough that it forces you to scroll the LB config form to reach the "Add Block" button).
  • Submit form, and observe that nothing seems to happen. But something did happen. If you scroll up, the AJAX form submission resulted in a a form validation error at the top of the form, but you don't see it because it did not auto scroll up the sidebar.

So, I think LB should attach a "scroll to" JS action when it receives a response from the form submit to bring users back to the top of the form.

🐛 Bug report
Status

Needs work

Version

10.1

Component
Layout builder 

Last updated about 3 hours ago

Created by

🇺🇸United States bkosborne New Jersey, USA

Live updates comments and jobs are added and updated live.
  • Blocks-Layouts

    Blocks and Layouts Initiative. See the #2811175 Add layouts to Drupal issue.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

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.

Production build 0.69.0 2024