p-table: rowSelectable property not working properly
Describe the bug
rowSelectable property not working when [(selection)] property has a row added programmatically that not respect rowSelectable condition; clicking on header checkbox, toggle the checkbox on the row that i have added programmatically and when this row not respect rowSelectable condition.
You can see this bug on reproducer section.
Environment
Angular 14, Primeng 14.0.0, Chrome (latest version)
Reproducer
https://primeng-tableselection-bug-a24ljk.stackblitz.io/
Angular version
14.1.0
PrimeNG version
14.0.0
Build / Runtime
TypeScript
Language
ALL
Node version (for AoT issues node --version)
14.18.0
Browser(s)
all
Steps to reproduce the behavior
https://primeng-tableselection-bug-a24ljk.stackblitz.io/ Click on header checkbox and you can see that row in selection that not respect rowSelectable condition is affected by the bug
Expected behavior
The click on the header checkbox must never be propagated to the rows that do not respect the rowSelectable condition