invalid image (and possibly slow loading image) breaks behavior, gets trapped inside zoom
Opened this issue · 0 comments
719media commented
Bug description
Medium zoom won't ever close if the image never loads. For example, dropped or slow connection. Troubleshooting further, this only happens when srcset is in use.
How to reproduce
- https://codesandbox.io/p/sandbox/sweet-jepsen-hc9n4f?file=%2Findex.html%3A23%2C1
- Contract clicking on the first invalid image vs. the second. The first "doesn't work" (can't close after open, and doesn't animate), and the second works.