Skip to content

Compatibility issue after WordPress 6.4 with the new lightbox functionality #758

@ionikol

Description

@ionikol

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:

  1. Update WordPress 6.4 to have the new lightbox feature
  2. Enable lightbox on an image
  3. Have the "Display images in WebP format on the site" turned on as tags
  4. Click on image on frontend to open lighbox
  5. Click X in top right of image to close lightbox
  6. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions