Datatable - Column - Headercheckboxicon slot doesn't replace default content #7112
Open
1 of 4 tasks
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
When using the headercheckboxicon slot in a column in a datatable, the content I provide doesn't overwrite the default checkbox in the header.
Pull Request Link
No response
Reason for not contributing a PR
Other Reason
No response
Reproducer
https://stackblitz.com/edit/gcazntjp?file=src%2FApp.vue
Environment
Vue 3 with primevue v4.
Vue version
3.2.45
PrimeVue version
4.2.5
Node version
No response
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
I expect the content in the headercheckboxicon to overwrite the default checkbox. It doesn't and both the default checkbox and the content I provide display at the same time. It should only display the content I put in the headercheckboxicon.
The reason why I am doing this is because I wanted to use the indeterminate checkbox to display whenever some of the rows (but not all) are selected in the datatable. I can't do that because of the fact the old checkbox is still there and because if I try to replace the checkbox with a checkbox that uses the checked value as the v-model. I get this error: v-model cannot be used on v-for or v-slot scope variables because they are not writable.
You can see that error here: https://stackblitz.com/edit/s3lawwws?file=src%2FApp.vue
I would also be happy with not using the headercheckboxicon slot if indeterminate was used for the headercheckbox whenever the user selects some of the rows but not all.
The text was updated successfully, but these errors were encountered: