From 0f6ad45a68c4dab4a0d5aafc1f94f9632ffd39c2 Mon Sep 17 00:00:00 2001 From: Wojciech Boman Date: Mon, 20 Nov 2023 10:18:18 +0100 Subject: [PATCH] Fix hiding fallback image --- .../AttachmentCarousel/Pager/AttachmentCarouselPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Attachments/AttachmentCarousel/Pager/AttachmentCarouselPage.js b/src/components/Attachments/AttachmentCarousel/Pager/AttachmentCarouselPage.js index 0fcade356156..68963a3b192b 100644 --- a/src/components/Attachments/AttachmentCarousel/Pager/AttachmentCarouselPage.js +++ b/src/components/Attachments/AttachmentCarousel/Pager/AttachmentCarouselPage.js @@ -91,7 +91,7 @@ function AttachmentCarouselPage({source, isAuthTokenRequired, isActive: initialI setIsImageLoading(true); }} onLoadEnd={() => { - setShowFallback(false); + setTimeout(() => setShowFallback(false), 100); setIsImageLoading(false); isImageLoaded.current = true; }}