chore(button): re-use common function for getting native element (#16056)

This commit is contained in:
Amit Gharat
2019-06-19 23:13:44 +05:30
committed by Jeremy Elbourn
parent b0d1bada8e
commit a2d91e4674
+1 -1
View File
@@ -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);
}
}