Skip to content

Commit 5370dfb

Browse files
committed
fix(grid): move radio btn in radio group
1 parent a76a5f2 commit 5370dfb

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

projects/angular/components/ui-grid/src/ui-grid.component.html

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -350,11 +350,14 @@
350350
</div>
351351
<div *ngIf="singleSelectable"
352352
class="ui-grid-mobile-feature-container ui-grid-mobile-refresh-container">
353-
<mat-radio-button [checked]="selectionManager.isSelected(row)"
354-
[disabled]="disabledReason"
355-
[matTooltip]="disabledReason || checkboxTooltip(row)"
356-
[aria-label]="disabledReason || checkboxTooltip(row)"
357-
(change)="rowSelected(row)"></mat-radio-button>
353+
<mat-radio-group>
354+
<mat-radio-button [value]="row.id"
355+
[checked]="selectionManager.isSelected(row)"
356+
[disabled]="disabledReason"
357+
[matTooltip]="disabledReason || checkboxTooltip(row)"
358+
[aria-label]="disabledReason || checkboxTooltip(row)"
359+
(change)="rowSelected(row)"></mat-radio-button>
360+
</mat-radio-group>
358361
</div>
359362
</ng-container>
360363
<div *ngIf="!!actions"
@@ -372,12 +375,14 @@
372375
class="ui-grid-cell ui-grid-checkbox-cell ui-grid-feature-cell"
373376
role="gridcell">
374377
<ng-container *ngLet="disableSelectionByEntry(row) as disabledReason">
375-
<mat-radio-button *ngIf="singleSelectable; else multiSelectable"
376-
[checked]="selectionManager.isSelected(row)"
377-
[disabled]="disabledReason"
378-
[matTooltip]="disabledReason || checkboxTooltip(row)"
379-
[aria-label]="disabledReason || checkboxTooltip(row)"
380-
(change)="rowSelected(row)"></mat-radio-button>
378+
<mat-radio-group *ngIf="singleSelectable; else multiSelectable">
379+
<mat-radio-button [value]="row.id"
380+
[checked]="selectionManager.isSelected(row)"
381+
[disabled]="disabledReason"
382+
[matTooltip]="disabledReason || checkboxTooltip(row)"
383+
[aria-label]="disabledReason || checkboxTooltip(row)"
384+
(change)="rowSelected(row)"></mat-radio-button>
385+
</mat-radio-group>
381386
<ng-template #multiSelectable>
382387
<mat-checkbox (click)="checkShift($event)"
383388
(keyup.shift.space)="checkShift($event)"

0 commit comments

Comments
 (0)