diff --git a/web/js/imageFeed.js b/web/js/imageFeed.js index 22dc323..f32bd8d 100644 --- a/web/js/imageFeed.js +++ b/web/js/imageFeed.js @@ -405,6 +405,8 @@ Recommended: "enabled (max performance)" uness images are erroneously deduplicat ), ]) ); + // If lightbox is open, update it with new image + lightbox.updateWithNewImage(href, feedDirection.value); } imageFeed.append(