From a3df444d1e7bc2ad722ba7b795b6d5ca04ad57c6 Mon Sep 17 00:00:00 2001 From: Jeremy Wilken Date: Wed, 12 Sep 2018 10:36:12 -0500 Subject: [PATCH] [NG] fix index for radios and rows to be consistent (#2645) fixes #2644 Signed-off-by: Jeremy Wilken --- src/clr-angular/data/datagrid/datagrid-row.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/clr-angular/data/datagrid/datagrid-row.ts b/src/clr-angular/data/datagrid/datagrid-row.ts index d5d104c313..7c21f23acf 100644 --- a/src/clr-angular/data/datagrid/datagrid-row.ts +++ b/src/clr-angular/data/datagrid/datagrid-row.ts @@ -114,8 +114,9 @@ export class ClrDatagridRow implements AfterContentInit { public hideableColumnService: HideableColumnService, public commonStrings: ClrCommonStrings ) { - this.id = 'clr-dg-row' + nbRow++; - this.radioId = 'clr-dg-row-rd' + nbRow++; + nbRow++; + this.id = 'clr-dg-row' + nbRow; + this.radioId = 'clr-dg-row-rd' + nbRow; } private _selected = false;