mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 05:58:26 +08:00
fix(alert): fix css add class
This commit is contained in:
@ -304,7 +304,9 @@ class AlertCmp {
|
|||||||
this.d = params.data;
|
this.d = params.data;
|
||||||
|
|
||||||
if (this.d.cssClass) {
|
if (this.d.cssClass) {
|
||||||
renderer.setElementClass(elementRef.nativeElement, this.d.cssClass, true);
|
this.d.cssClass.split(' ').forEach(cssClass => {
|
||||||
|
renderer.setElementClass(_elementRef.nativeElement, cssClass, true);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
this.id = (++alertIds);
|
this.id = (++alertIds);
|
||||||
|
Reference in New Issue
Block a user