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 @@ -6891,16 +6891,21 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
68916891 const activeEl = this . selectionService . activeElement ;
68926892
68936893 if ( this . nativeElement . tagName . toLowerCase ( ) === 'igx-hierarchical-grid' ) {
6894- const expansionRowIndexes = Array . from ( this . expansionStates . keys ( ) ) ;
6894+ const expansionRowIndexes = [ ] ;
6895+ for ( const [ key , value ] of this . expansionStates . entries ( ) ) {
6896+ if ( value ) {
6897+ expansionRowIndexes . push ( key ) ;
6898+ }
6899+ }
68956900 if ( this . selectionService . selection . size > 0 ) {
68966901 if ( expansionRowIndexes . length > 0 ) {
68976902 for ( const [ key , value ] of this . selectionService . selection . entries ( ) ) {
68986903 let updatedKey = key ;
68996904 expansionRowIndexes . forEach ( row => {
69006905 let rowIndex ;
6901- if ( row . ID ) {
6906+ if ( ! isNaN ( row . ID ) ) {
69026907 rowIndex = Number ( row . ID ) ;
6903- } else {
6908+ } else {
69046909 rowIndex = Number ( row ) ;
69056910 }
69066911
You can’t perform that action at this time.
0 commit comments