DataTable: rowStyle invalid Type: Got function expected object #5349
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
I saw that these changes were made on the latest minor update: components/lib/datatable/BaseDataTable.vue (see Screenshot)
Reading the docs it was clear that a function should be given. And the function should return an object.
Screenshot from the docs:
We used it like that:
:rowStyle="() => { return { 'height': someValue}}"
Here is the warning:
Now if we change it to
:rowStyle="{'height': someValue}"
We get the following error:
Reproducer
PrimeVue version
3.49.1
Vue version
3.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: