Skip to content

Commit

Permalink
fix(material/forms): fix choice fields with few choices
Browse files Browse the repository at this point in the history
  • Loading branch information
robzan8 committed Feb 14, 2024
1 parent b84b1db commit 8ad4a8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion projects/material/forms/src/multiple-choice-field.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<ng-template #expanded>
<ajf-checkbox-group *ngIf="control|async as ctrl" class="ajf-choices-container"
[formControl]="ctrl!">
<ajf-checkbox-group-item [value]="choice.value" *ngFor="let choice of filteredChoices">
<ajf-checkbox-group-item [value]="choice.value" *ngFor="let choice of instance!.filteredChoices">
{{ choice.label | transloco }}
</ajf-checkbox-group-item>
</ajf-checkbox-group>
Expand Down
2 changes: 1 addition & 1 deletion projects/material/forms/src/single-choice-field.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<mat-radio-group *ngIf="control|async as ctrl" class="ajf-choices-container"
[attr.aria-labelledby]="instance!.node.name"
[formControl]="ctrl!">
<mat-radio-button [value]="choice.value" *ngFor="let choice of filteredChoices">
<mat-radio-button [value]="choice.value" *ngFor="let choice of instance!.filteredChoices">
{{ choice.label | transloco }}
</mat-radio-button>
</mat-radio-group>
Expand Down

0 comments on commit 8ad4a8c

Please sign in to comment.