Image lightbox not working after collapsed

AI-generated summary

Image Lightbox Issue After Collapse

An issue with the image lightbox was reported by Don, where the lightbox functionality would stop working after collapsing and expanding an image again. The repro steps were provided, and nat confirmed the issue was fixed in PR. However, Don later reported the issue reoccurred. joffreyjaffeux acknowledged the problem and provided a fix in PR, resolving the issue.

Hello,

The image in chat expanded by default and I can open in lightbox but If I collapse and expand again the lightbox will not work.

Repro:

  1. Collapse an image
  2. Expand it again
  3. Lightbox will not work anymore

Thanks :slightly_smiling_face:

Thanks for the great report, super easy to reproduce! It is now confirmed to be fixed: PR. We’ll have to give it some time to be propagated to meta.

3 Likes

Hello,

It seems this issue happens again. :slightly_smiling_face:

Thank you :slightly_smiling_face:

2 Likes

Yes I know what is happening, will fix it now :+1:

3 Likes

That should fix it:

Thanks

2 Likes