Skip to content

Commit

Permalink
fix(checkbox): change inputElement as required
Browse files Browse the repository at this point in the history
  • Loading branch information
Kordrad committed Jul 3, 2024
1 parent 38c07bf commit 6e7b479
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class ZenCheckboxComponent

/** @ignore */
private readonly inputElement =
viewChild<ElementRef<HTMLInputElement>>('inputElement');
viewChild.required<ElementRef<HTMLInputElement>>('inputElement');

/**
* Lifecycle hook called after Angular has fully initialized a component's view.
Expand Down Expand Up @@ -139,7 +139,7 @@ export class ZenCheckboxComponent
)
.subscribe((value: boolean) => {
this.renderer2.setProperty(
this.inputElement()?.nativeElement,
this.inputElement().nativeElement,
'indeterminate',
value
);
Expand Down

0 comments on commit 6e7b479

Please sign in to comment.