Skip to content

Commit a2d91e4

Browse files
codef0rmerzjelbourn
authored andcommitted
chore(button): re-use common function for getting native element (#16056)
1 parent b0d1bad commit a2d91e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material/button/button.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export class MatButton extends _MatButtonMixinBase
9898
// attributes, add the correct corresponding class.
9999
for (const attr of BUTTON_HOST_ATTRIBUTES) {
100100
if (this._hasHostAttributes(attr)) {
101-
(elementRef.nativeElement as HTMLElement).classList.add(attr);
101+
(this._getHostElement() as HTMLElement).classList.add(attr);
102102
}
103103
}
104104

0 commit comments

Comments
 (0)