We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0d1bad commit a2d91e4Copy full SHA for a2d91e4
src/material/button/button.ts
@@ -98,7 +98,7 @@ export class MatButton extends _MatButtonMixinBase
98
// attributes, add the correct corresponding class.
99
for (const attr of BUTTON_HOST_ATTRIBUTES) {
100
if (this._hasHostAttributes(attr)) {
101
- (elementRef.nativeElement as HTMLElement).classList.add(attr);
+ (this._getHostElement() as HTMLElement).classList.add(attr);
102
}
103
104
0 commit comments