Skip to content

Commit

Permalink
fix: IE11 crash by avoiding argument-less calls to classList.add (#2244)
Browse files Browse the repository at this point in the history
  • Loading branch information
metrophos committed Apr 7, 2020
1 parent 7feb4b4 commit d356914
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export class PopoverDirective implements OnInit, OnDestroy, OnChanges {
this.containerRef.instance.noArrow = this.noArrow;
this.containerRef.instance.closeOnEscapeKey = this.closeOnEscapeKey;

if (this.additionalClasses) {
if (this.additionalClasses.length > 0) {
this.containerRef.location.nativeElement.classList.add(...this.additionalClasses);
}

Expand Down

0 comments on commit d356914

Please sign in to comment.