DataTable: tableClass prop specifies String type, though Array also works #5297
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
The tableClass prop erroneously specifies String type. Array types appear to also work. When passing an array, the console logs a warning. Adding the Array type to the prop would eliminate this unnecessary warning.
Reproducer
https://stackblitz.com/edit/primevue-create-vue-issue-template-gip7xj?file=src%2FApp.vue
PrimeVue version
3.48.1
Vue version
3.x
Language
ALL
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
The styles display as specified in the two classes in the tableClass array. The console displays this warning:
Expected behavior
The styles should continue to display as specified in the two classes in the tableClass array.
The console should not display a warning.
The text was updated successfully, but these errors were encountered: