Skip to content

Commit

Permalink
Merge pull request #10943 from IgniteUI/skrastev/fix-10859-pivot
Browse files Browse the repository at this point in the history
fix(pivotGrid): Stop propagation when clicking on expansion icon for row dimension to not trigger selection events.
  • Loading branch information
ChronosSF authored Feb 3, 2022
2 parents 411e9fc + 1c736b4 commit 4bd05ab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<ng-template #headerTemplate let-column>
<div class='igx-grid__tr--header igx-grid__row-indentation--level-{{getLevel(column)}}'>
<igx-icon [attr.draggable]=" false" (click)="grid.toggleRow(getRowDimensionKey(column))">
<igx-icon [attr.draggable]=" false" (click)="toggleRowDimension($event, column)">
{{ getExpandState(column) ? 'expand_more' : 'chevron_right'}}</igx-icon>
{{column.header}}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,15 @@ export class IgxPivotRowDimensionContentComponent extends IgxGridHeaderRowCompon
}
}

/**
* @hidden
* @internal
*/
public toggleRowDimension(event, column) {
this.grid.toggleRow(this.getRowDimensionKey(column))
event?.stopPropagation();
}


/**
* @hidden
Expand Down

0 comments on commit 4bd05ab

Please sign in to comment.