Needs review
Project:
Layout Builder Modal
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Jul 2023 at 16:02 UTC
Updated:
17 Jul 2025 at 12:14 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #3
carolpettirossi commentedAttaching .patch to use with composer.json
MR is ready to review. Note that the code only works if the messages div has "role=alert"
Comment #4
carolpettirossi commentedComment #5
gab. commentedHi @carolpettirossi I've reviewed your patch (3375915-creating_block_form_errors_scroll-3.patch) and can confirm the modal scrolls up when an error on the form occurs. Please refer to the attached image for reference. Appreciate your efforts!
Comment #6
kmontyMinor change, but the `once` dependency should be included in the wrapper function.
So:
becomes:
Also, this should be run through eslint, as it doesn't match Drupal's Prettier rules (single quotes instead of double quotes, no unnamed funcs, incomplete code comments
// If no error messages exist, theetc.)Comment #7
shalini_jha commentedHi, I have updated the changes in this patch. please review.
Comment #8
kmontyThe new patch is just for my suggested changes against the 8.x branch and not updating the existing patch. It also does not include eslint changes.
Comment #10
olegrymar commented