-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Open
Labels
[Block] ImageAffects the Image BlockAffects the Image Block[Status] Needs More InfoFollow-up required in order to be actionable.Follow-up required in order to be actionable.[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
When using the Image block with “Enlarge on click” enabled, the page becomes unscrollable after closing the lightbox, but only on the first page load. After a browser reload, the issue no longer occurs.
I investigated this myself and found a JavaScript console error coming from WordPress core, which prevents the scroll-unlock logic from running.
Steps to Reproduce
- Open a page with large images using the Image block
- Ensure “Enlarge on click” is enabled
- Scroll down the page
- Click an image to open it in the lightbox
- Close the image
- Try to scroll the page
Issue Source: https://wordpress.org/support/topic/enlarge-on-click-page-scroll-issue/
Metadata
Metadata
Assignees
Labels
[Block] ImageAffects the Image BlockAffects the Image Block[Status] Needs More InfoFollow-up required in order to be actionable.Follow-up required in order to be actionable.[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
