Skip to content

Commit 4048b38

Browse files
authored
Merge pull request #360 from UiPath/fix/grid_single_selection
Fix(grid-single-selection): move radio button inside radio group
2 parents a76a5f2 + a9e00b6 commit 4048b38

File tree

5 files changed

+23
-15
lines changed

5 files changed

+23
-15
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# v14.8.2 (2023-05-31)
2+
* **grid** move radio btn in radio group
3+
14
# v14.8.1 (2023-05-29)
25
* **grid** add tooltips & disable state for radio selection
36
* **grid** add tests for radio selection

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-components",
3-
"version": "14.8.1",
3+
"version": "14.8.2",
44
"author": {
55
"name": "UiPath Inc",
66
"url": "https://uipath.com"

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)"

projects/angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@uipath/angular",
3-
"version": "14.8.1",
3+
"version": "14.8.2",
44
"license": "MIT",
55
"author": {
66
"name": "UiPath Inc",

0 commit comments

Comments
 (0)