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 @@ -6865,16 +6865,21 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
6865
6865
const activeEl = this . selectionService . activeElement ;
6866
6866
6867
6867
if ( this . nativeElement . tagName . toLowerCase ( ) === 'igx-hierarchical-grid' ) {
6868
- const expansionRowIndexes = Array . from ( this . expansionStates . keys ( ) ) ;
6868
+ const expansionRowIndexes = [ ] ;
6869
+ for ( const [ key , value ] of this . expansionStates . entries ( ) ) {
6870
+ if ( value ) {
6871
+ expansionRowIndexes . push ( key ) ;
6872
+ }
6873
+ }
6869
6874
if ( this . selectionService . selection . size > 0 ) {
6870
6875
if ( expansionRowIndexes . length > 0 ) {
6871
6876
for ( const [ key , value ] of this . selectionService . selection . entries ( ) ) {
6872
6877
let updatedKey = key ;
6873
6878
expansionRowIndexes . forEach ( row => {
6874
6879
let rowIndex ;
6875
- if ( row . ID ) {
6880
+ if ( ! isNaN ( row . ID ) ) {
6876
6881
rowIndex = Number ( row . ID ) ;
6877
- } else {
6882
+ } else {
6878
6883
rowIndex = Number ( row ) ;
6879
6884
}
6880
6885
You can’t perform that action at this time.
0 commit comments