Skip to content

Commit

Permalink
Refactor #10719
Browse files Browse the repository at this point in the history
  • Loading branch information
yigitfindikli committed Oct 8, 2021
1 parent ae6cf6c commit b11234b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/components/button/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,11 @@ export class ButtonDirective implements AfterViewInit, OnDestroy {
}

let iconClass = this.getIconClass();

if(iconClass) {
DomHandler.addMultipleClasses(iconElement, iconClass);
}

let labelEl = DomHandler.findSingle(this.el.nativeElement, '.p-button-label')

if (labelEl)
Expand Down

0 comments on commit b11234b

Please sign in to comment.