fix: resolve lightbox photo loading issue and fix lint error in vitest.setup.ts
This commit is contained in:
@@ -175,8 +175,8 @@ export function Lightbox({ assets, currentIndex, onClose, onNext, onPrev }: Ligh
|
||||
src={current.previewUrl}
|
||||
alt=""
|
||||
draggable={false}
|
||||
crossOrigin="anonymous"
|
||||
onLoad={() => setImageLoaded(true)}
|
||||
onError={() => console.error(`[Lightbox] Failed to load image: ${current.previewUrl}`)}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user