Skip to content

Commit 708467c

Browse files
committed
chore(*): address changes
1 parent 3f404de commit 708467c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

projects/igniteui-angular/src/lib/grids/headers/grid-header-group.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ export class IgxGridHeaderGroupComponent implements DoCheck {
218218
*/
219219
get selectable() {
220220
const selectableChildren = this.column.allChildren.filter(c => !c.hidden && c.selectable && !c.columnGroup);
221-
return this.grid.columnSelection !== 'none' &&
221+
return this.grid.columnSelection !== GridSelectionMode.none &&
222222
this.column.applySelectableClass
223223
&& !this.selected && selectableChildren.length > 0
224224
&& !this.grid.filteringService.isFilterRowVisible;
@@ -250,7 +250,8 @@ export class IgxGridHeaderGroupComponent implements DoCheck {
250250
*/
251251
public groupClicked(event): void {
252252
const columnsToSelect = this.column.allChildren.filter(c => !c.hidden && c.selectable && !c.columnGroup).map(c => c.field);
253-
if (this.grid.columnSelection !== 'none' && columnsToSelect.length > 0 && !this.grid.filteringService.isFilterRowVisible) {
253+
if (this.grid.columnSelection !== GridSelectionMode.none
254+
&& columnsToSelect.length > 0 && !this.grid.filteringService.isFilterRowVisible) {
254255
const clearSelection = this.grid.columnSelection === GridSelectionMode.single || !event.ctrlKey;
255256
const rangeSelection = this.grid.columnSelection === GridSelectionMode.multiple && event.shiftKey;
256257
if (!this.selected) {

projects/igniteui-angular/src/lib/grids/headers/grid-header.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export class IgxGridHeaderComponent implements DoCheck, OnInit, OnDestroy {
123123
}
124124

125125
get selectable() {
126-
return this.grid.columnSelection !== 'none' &&
126+
return this.grid.columnSelection !== GridSelectionMode.none &&
127127
this.column.applySelectableClass &&
128128
!this.column.selected &&
129129
!this.grid.filteringService.isFilterRowVisible;
@@ -189,7 +189,7 @@ export class IgxGridHeaderComponent implements DoCheck, OnInit, OnDestroy {
189189
!this.grid.filteringService.isFilterComplex(this.column.field)) {
190190
this.grid.filteringService.filteredColumn = this.column;
191191
}
192-
} else if (this.grid.columnSelection !== 'none' && this.column.selectable) {
192+
} else if (this.grid.columnSelection !== GridSelectionMode.none && this.column.selectable) {
193193
const clearSelection = this.grid.columnSelection === GridSelectionMode.single || !event.ctrlKey;
194194
const rangeSelection = this.grid.columnSelection === GridSelectionMode.multiple && event.shiftKey;
195195

0 commit comments

Comments
 (0)