TreeTable: passing row property to the table pass through is not working
Describe the bug
Row passthrough's root property is injected directly in the DOM instead of being parsed.
DOM:
Code:
Reproducer
https://stackblitz.com/edit/ymsdhzlr-ke9rnhph?file=src%2FApp.jsx
System Information
primereact: 10.9.1
Steps to reproduce the behavior
No response
Expected behavior
No response
Defining the callback at the row level works correctly (maybe it's a TS issue?) but unfortunately the passed data does not contain elements allowing us to identify a specific row , IMHO, the row ID should be passed to the callback.
PR is welcome. The typescript should be easy to fix. As for the row Id not sure
I've noticed bodyCell doesn't work either, and there isn't a cellClassName like in <DataTable />. Example:
<TreeTable
// ...
pt={{
bodyCell: { className: 'p-0' }
}}
/>