mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
chore(button): re-use common function for getting native element (#16056)
This commit is contained in:
committed by
Jeremy Elbourn
parent
b0d1bada8e
commit
a2d91e4674
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user