File tree 1 file changed +0
-14
lines changed
1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ export class Icon {
12
12
private io ?: IntersectionObserver ;
13
13
private iconName : string | null = null ;
14
14
private inheritedAttributes : { [ k : string ] : any } = { } ;
15
- private didLoadIcon = false ;
16
15
17
16
@Element ( ) el ! : HTMLElement ;
18
17
@@ -95,18 +94,6 @@ export class Icon {
95
94
} ) ;
96
95
}
97
96
98
- componentDidLoad ( ) {
99
- /**
100
- * Addresses an Angular issue where property values are assigned after the 'connectedCallback' but prior to the registration of watchers.
101
- * This enhancement ensures the loading of an icon when the component has finished rendering and the icon has yet to apply the SVG data.
102
- * This modification pertains to the usage of Angular's binding syntax:
103
- * `<ion-icon [name]="myIconName"></ion-icon>`
104
- */
105
- if ( ! this . didLoadIcon ) {
106
- this . loadIcon ( ) ;
107
- }
108
- }
109
-
110
97
disconnectedCallback ( ) {
111
98
if ( this . io ) {
112
99
this . io . disconnect ( ) ;
@@ -151,7 +138,6 @@ export class Icon {
151
138
// async if it hasn't been loaded
152
139
getSvgContent ( url , this . sanitize ) . then ( ( ) => ( this . svgContent = ioniconContent . get ( url ) ) ) ;
153
140
}
154
- this . didLoadIcon = true ;
155
141
}
156
142
}
157
143
You can’t perform that action at this time.
0 commit comments