File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
projects/igniteui-angular/src/lib/grids Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -6881,16 +6881,21 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
6881
6881
const activeEl = this . selectionService . activeElement ;
6882
6882
6883
6883
if ( this . nativeElement . tagName . toLowerCase ( ) === 'igx-hierarchical-grid' ) {
6884
- const expansionRowIndexes = Array . from ( this . expansionStates . keys ( ) ) ;
6884
+ const expansionRowIndexes = [ ] ;
6885
+ for ( const [ key , value ] of this . expansionStates . entries ( ) ) {
6886
+ if ( value ) {
6887
+ expansionRowIndexes . push ( key ) ;
6888
+ }
6889
+ }
6885
6890
if ( this . selectionService . selection . size > 0 ) {
6886
6891
if ( expansionRowIndexes . length > 0 ) {
6887
6892
for ( const [ key , value ] of this . selectionService . selection . entries ( ) ) {
6888
6893
let updatedKey = key ;
6889
6894
expansionRowIndexes . forEach ( row => {
6890
6895
let rowIndex ;
6891
- if ( row . ID ) {
6896
+ if ( ! isNaN ( row . ID ) ) {
6892
6897
rowIndex = Number ( row . ID ) ;
6893
- } else {
6898
+ } else {
6894
6899
rowIndex = Number ( row ) ;
6895
6900
}
6896
6901
You can’t perform that action at this time.
0 commit comments