DataTable: [Vue warn]: Invalid prop: type check failed for prop "rowClass". Expected String | Object, got Function #5341
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
in DataTable rowClass prop can be a function and work fine as function but in BaseDataTable.Vue defined as
rowClass: {
type: [String, Object],
default: null
},
so a warning generate in console when used as function.
Reproducer
ss
PrimeVue version
3.48.1
Vue version
3.x
Language
TypeScript
Build / Runtime
Nuxt
Browser(s)
chrome
Steps to reproduce the behavior
const rowClass = (data) => {
return ['cursor-pointer', { 'bc-changed-dataset': data.isChanged }]
}
Expected behavior
no vue warning
The text was updated successfully, but these errors were encountered: