Skip to content

Commit

Permalink
Fixed #9497 - DOM Exception trigger with ButtonDirective afterViewInit
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Nov 17, 2020
1 parent eb884e5 commit 1a7bb23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/dom/domhandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class DomHandler {

public static addMultipleClasses(element: any, className: string): void {
if (element.classList) {
let styles: string[] = className.split(' ');
let styles: string[] = className.trim().split(' ');
for (let i = 0; i < styles.length; i++) {
element.classList.add(styles[i]);
}
Expand Down

0 comments on commit 1a7bb23

Please sign in to comment.