Skip to content

A self-hosted media server and file management system

fix: lazy image alt flashes on firefox

aminnausin9a84f5ca41d8
diff --git a/resources/js/components/lazy/LazyImage.vue b/resources/js/components/lazy/LazyImage.vue
index 4f3d81d0..5c61d198 100644
--- a/resources/js/components/lazy/LazyImage.vue
+++ b/resources/js/components/lazy/LazyImage.vue
@@ -39,7 +39,7 @@ watch(
<img
v-bind="attrs"
:loading="loading"
- :alt="isError ? '' : alt"
+ :alt="isError || !isLoaded ? '' : alt"
:src="src"
:class="[{ 'lazy-image transition-opacity duration-700 ease-in-out': animate }, { loaded: isLoaded }]"
@load="