Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit a6099bc

Browse files
fix(#23): lazy load all slotted images
1 parent e9cd365 commit a6099bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/utils/deckdeckgo-utils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class DeckdeckgoUtils {
4646
}
4747

4848
private static getAllImages(el: HTMLElement): HTMLElement[] {
49-
const allSlotedImages: NodeListOf<HTMLElement> = el.querySelectorAll('[slot] > img');
49+
const allSlotedImages: NodeListOf<HTMLElement> = el.querySelectorAll('[slot] img');
5050
const allShadowImages: NodeListOf<HTMLElement> = el.shadowRoot.querySelectorAll('img');
5151

5252
return Array.from(allSlotedImages).concat(Array.from(allShadowImages));

0 commit comments

Comments
 (0)