Skip to content

Commit 48e347c

Browse files
committed
chore(*): check for drga select only in hierarchical grid
1 parent 745a7a7 commit 48e347c

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
@@ -755,7 +755,8 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy {
755755
* @internal
756756
*/
757757
pointerenter = (event: PointerEvent) => {
758-
if (!this.grid.navigation.activeNode.gridID || this.grid.navigation.activeNode.gridID !== this.gridID) {
758+
const isHierarchicalGrid = this.grid.nativeElement.tagName.toLowerCase() === 'igx-hierarchical-grid';
759+
if (isHierarchicalGrid && (!this.grid.navigation.activeNode.gridID || this.grid.navigation.activeNode.gridID !== this.gridID)) {
759760
return;
760761
}
761762
const dragMode = this.selectionService.pointerEnter(this.selectionNode, event);
@@ -769,8 +770,9 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy {
769770
* @internal
770771
*/
771772
pointerup = (event: PointerEvent) => {
772-
if (!isLeftClick(event) || !this.grid.navigation.activeNode.gridID ||
773-
this.grid.navigation.activeNode.gridID !== this.gridID) { return; }
773+
const isHierarchicalGrid = this.grid.nativeElement.tagName.toLowerCase() === 'igx-hierarchical-grid';
774+
if (!isLeftClick(event) || (isHierarchicalGrid && (!this.grid.navigation.activeNode.gridID ||
775+
this.grid.navigation.activeNode.gridID !== this.gridID))) { return; }
774776
if (this.selectionService.pointerUp(this.selectionNode, this.grid.onRangeSelection)) {
775777
this.grid.cdr.detectChanges();
776778
}

0 commit comments

Comments
 (0)