Skip to content

Commit bce98d2

Browse files
authored
fix(icon): fix lazy loading not properly calling correct load method (#2826)
1 parent 9364e16 commit bce98d2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/loud-rings-lay.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@patternfly/elements": patch
3+
---
4+
5+
`<pf-icon>`: fixed lazy icon lazy loading

elements/pf-icon/pf-icon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class PfIcon extends LitElement {
5252
icon.#intersecting = isIntersecting;
5353
ric(() => {
5454
if (icon.#intersecting) {
55-
icon.load();
55+
icon.#load();
5656
}
5757
});
5858
});

0 commit comments

Comments
 (0)