Skip to content

Commit d9d1c20

Browse files
committed
Don't try to use non-existing elements #8953
If we don't specify a type parameter then `nativeElement` will return an `any` allowing us to do very dangerous things without any typing checks
1 parent 9a4c8d4 commit d9d1c20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/fab-speed-dial/src/lib/fab-speed-dial.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export class EcoFabSpeedDialComponent implements OnDestroy, AfterContentInit {
254254
@ContentChild(EcoFabSpeedDialActionsComponent) private _childActions!: EcoFabSpeedDialActionsComponent;
255255

256256
public constructor(
257-
private elementRef: ElementRef,
257+
private elementRef: ElementRef<HTMLElement>,
258258
private renderer: Renderer2,
259259
@Inject(DOCUMENT) private document: Document,
260260
) {}

0 commit comments

Comments
 (0)