Skip to content

Commit

Permalink
chore(button): re-use common function for getting native element (ang…
Browse files Browse the repository at this point in the history
  • Loading branch information
codef0rmerz authored and jelbourn committed Jun 19, 2019
1 parent b0d1bad commit a2d91e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/material/button/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class MatButton extends _MatButtonMixinBase
// attributes, add the correct corresponding class.
for (const attr of BUTTON_HOST_ATTRIBUTES) {
if (this._hasHostAttributes(attr)) {
(elementRef.nativeElement as HTMLElement).classList.add(attr);
(this._getHostElement() as HTMLElement).classList.add(attr);
}
}

Expand Down

0 comments on commit a2d91e4

Please sign in to comment.