I'm working on a project that used PrimeNg as UI library. While working with the table, I found that the datakey property does not select all the related rows. When I console log the selection array, it shows only 1 was selected. But the UI selects all the related rows.
For example, I have a table that contains row with multiple trackingNo. Every row might have the same trackingNo. When I select one of the row, it should select all the related rows with the same trackingNo.
Am I missing something? Or is it a bug ?
<p-table
[(selection)]="selectedRows"
[columns]="cols"
[dataKey]="'trackingNo'"
[selectionMode]="'multiple'"
[lazy]="false"
[rows]="20"
[value]="values$ | async">