You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For two of the input properties on the table component there is an incorrect attribute transformation being applied.
The two inputs are:
/**
* Map instance to keep the expanded rows where key of the map is the data key of the row.
* @group Props
*/
@Input({ transform: booleanAttribute }) expandedRowKeys: { [s: string]: boolean } = {};
/**
* Map instance to keep the rows being edited where key of the map is the data key of the row.
* @group Props
*/
@Input({ transform: booleanAttribute }) editingRowKeys: { [s: string]: boolean } = {};
The type for each doesn't need a boolean attribute transformation as the type of the property is an object.
This causes a runtime error:
ERROR Error: Cannot create property '1' on boolean 'true'
Describe the bug
For two of the input properties on the table component there is an incorrect attribute transformation being applied.
The two inputs are:
The type for each doesn't need a boolean attribute transformation as the type of the property is an object.
This causes a runtime error:
Environment
Angular 17.3.3
PrimeNG 17.13.0
Reproducer
https://stackblitz.com/edit/github-vj4cq8?file=src%2Fapp%2Fapp.component.html
Angular version
17.3.3
PrimeNG version
17.13.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.18.2
Browser(s)
No response
Steps to reproduce the behavior
In provided reproducer:
Expected behavior
I expect to pass an object conforming to the type of these inputs and not have it transformed/interpreted as a boolean type.
The text was updated successfully, but these errors were encountered: