Skip to content

Commit facdaf5

Browse files
committed
fix(button): add return type to _getHostElement for type safety
1 parent b34713c commit facdaf5

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-
this._getHostElement().classList.add(attr);
101+
(this._getHostElement() as HTMLElement).classList.add(attr);
102102
}
103103
}
104104

0 commit comments

Comments
 (0)