-
Notifications
You must be signed in to change notification settings - Fork 159
Labels
🐛 bugAny issue that describes a bugAny issue that describes a bug✅ status: resolvedApplies to issues that have pending PRs resolving them, or PRs that have already merged.Applies to issues that have pending PRs resolving them, or PRs that have already merged.grid: hierarchical-gridgrid: selectionversion: 19.2.xversion: 20.0.x
Description
Description
Clicking on a cell multiple times fires the selected
event. For grid, tree grid, and pivot grid the selected
event is fired only once on initial cell click.
- igniteui-angular version: 20.0.x, 19.2.x
- browser: any
Steps to reproduce
- Enable
cellSelection
and add a handler for theselected
event.
<igx-hierarchical-grid
#hierarchicalGrid
[data]="localData"
[autoGenerate]="true"
[cellSelection]="'single'"
(selected)="onCellSelected($event)"
>
<igx-row-island
[key]="'Albums'"
[autoGenerate]="true"
[cellSelection]="'multiple'"
(selected)="onCellSelected($event)"
>
<igx-row-island [key]="'Songs'" [autoGenerate]="true">
</igx-row-island>
</igx-row-island>
<igx-row-island [key]="'Tours'" [autoGenerate]="true"> </igx-row-island>
</igx-hierarchical-grid>
public onCellSelected(event) {
console.log("onCellSelected");
console.log(event)
}
- Click on a cell multiple times and observe the DevTools console.
Result
The event is fired multiple times.
Expected result
The event should be fired once on initial click, similar to the other grids.
Attachments
Metadata
Metadata
Assignees
Labels
🐛 bugAny issue that describes a bugAny issue that describes a bug✅ status: resolvedApplies to issues that have pending PRs resolving them, or PRs that have already merged.Applies to issues that have pending PRs resolving them, or PRs that have already merged.grid: hierarchical-gridgrid: selectionversion: 19.2.xversion: 20.0.x