Skip to content

Commit 2997eee

Browse files
committed
comment ie weirdness
1 parent e982b26 commit 2997eee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/dialog/dialog.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ export class Dialog implements OnInit, AfterViewInit, OnDestroy {
137137
*/
138138
ngAfterViewInit() {
139139
const dialogElement = this.dialog.nativeElement;
140+
// split the wrapper class list and apply seperatly to avoid IE from
141+
// 1. throwing an error due to asigning a readonly property (classList)
142+
// 2. throwing an SyntaxError due to passing an empty string to .add
140143
if (this.dialogConfig.wrapperClass) {
141144
for (const extraClass of this.dialogConfig.wrapperClass.split(" ")) {
142145
dialogElement.classList.add(extraClass);

0 commit comments

Comments
 (0)