Describe the bug
When the "Display images in WebP format on the site” option is turned on as tags and the new lightbox functionality on WordPress 6.4 is closed the site’s scroll gets stuck/broken.
To Reproduce
Steps to reproduce the behavior:
- Update WordPress 6.4 to have the new lightbox feature
- Enable lightbox on an image
- Have the "Display images in WebP format on the site" turned on as tags
- Click on image on frontend to open lighbox
- Click X in top right of image to close lightbox
- Can't scroll up/down even though lightbox closed
Additional context
Tickets from HS and WordPress.org
https://secure.helpscout.net/conversation/2416490954/453777/
https://wordpress.org/support/topic/imagify-conflicts-with-wordpress-6-4s-new-lightbox-functionality/
Acceptance Criteria (for WP Media team use only)
Clear instructions for developers, to be added before the grooming