Skip to content

Commit 5c2d442

Browse files
committed
chore(*): check for drga select only in hierarchical grid
1 parent 7d77c9b commit 5c2d442

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

projects/igniteui-angular/src/lib/grids/cell.component.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,8 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy {
778778
* @internal
779779
*/
780780
pointerenter = (event: PointerEvent) => {
781-
if (!this.grid.navigation.activeNode.gridID || this.grid.navigation.activeNode.gridID !== this.gridID) {
781+
const isHierarchicalGrid = this.grid.nativeElement.tagName.toLowerCase() === 'igx-hierarchical-grid';
782+
if (isHierarchicalGrid && (!this.grid.navigation.activeNode.gridID || this.grid.navigation.activeNode.gridID !== this.gridID)) {
782783
return;
783784
}
784785
const dragMode = this.selectionService.pointerEnter(this.selectionNode, event);
@@ -792,8 +793,9 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy {
792793
* @internal
793794
*/
794795
pointerup = (event: PointerEvent) => {
795-
if (!isLeftClick(event) || !this.grid.navigation.activeNode.gridID ||
796-
this.grid.navigation.activeNode.gridID !== this.gridID) { return; }
796+
const isHierarchicalGrid = this.grid.nativeElement.tagName.toLowerCase() === 'igx-hierarchical-grid';
797+
if (!isLeftClick(event) || (isHierarchicalGrid && (!this.grid.navigation.activeNode.gridID ||
798+
this.grid.navigation.activeNode.gridID !== this.gridID))) { return; }
797799
if (this.selectionService.pointerUp(this.selectionNode, this.grid.onRangeSelection)) {
798800
this.grid.cdr.detectChanges();
799801
}

0 commit comments

Comments
 (0)