mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 13:01:01 +08:00
Merge pull request #4971 from 3dd13/remove-css-classes-when-ion-icon-on-destroy
fix(icon): add ngOnDestroy to ion-icon and remove added css class
This commit is contained in:
@ -70,6 +70,15 @@ export class Icon {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
ngOnDestroy() {
|
||||||
|
if (this._css) {
|
||||||
|
this._renderer.setElementClass(this._elementRef, this._css, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Input()
|
@Input()
|
||||||
get name() {
|
get name() {
|
||||||
return this._name;
|
return this._name;
|
||||||
|
Reference in New Issue
Block a user