File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
projects/igniteui-angular/src/lib/grids Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -521,12 +521,11 @@ export abstract class IgxGridBaseComponent extends DisplayDensityBase implements
521
521
*/
522
522
set rowSelectable ( val : boolean ) {
523
523
this . _rowSelection = val ;
524
- if ( this . gridAPI . grid ) {
524
+ if ( this . gridAPI . grid && this . columnList ) {
525
525
526
526
// should selection persist?
527
527
this . allRowsSelected = false ;
528
528
this . deselectAllRows ( ) ;
529
- this . resetCachedWidths ( ) ;
530
529
this . calculateGridSizes ( ) ;
531
530
}
532
531
}
@@ -545,8 +544,7 @@ export abstract class IgxGridBaseComponent extends DisplayDensityBase implements
545
544
*/
546
545
set rowDraggable ( val : boolean ) {
547
546
this . _rowDrag = val ;
548
- if ( this . gridAPI . grid ) {
549
- this . resetCachedWidths ( ) ;
547
+ if ( this . gridAPI . grid && this . columnList ) {
550
548
this . calculateGridSizes ( ) ;
551
549
}
552
550
}
You can’t perform that action at this time.
0 commit comments