DataTable: cannot uncheck when click the checkbox in column #3691
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
restore checkbox stop propagation in datatable checkbox from version 3.20
In version 3.21, if set selectionMode in , and checkbox select column, then the checkbox in column not checked currectly:
can not uncheck when click the checkbox in column
https://primevue.org/datatable/selection
With the example in document, add
selectionMode="multiple"
in<DataTable>
<DataTable :value="products" v-model:selection="selectedProducts3" selectionMode="multiple" dataKey="id" responsiveLayout="scroll" > <Column selectionMode="multiple" headerStyle="width: 3em"></Column> <Column field="code" header="Code"></Column> <Column field="name" header="Name"></Column> <Column field="category" header="Category"></Column> <Column field="quantity" header="Quantity"></Column> </DataTable>
Reproducer
https://codesandbox.io/s/datatable-checkbox-error-upnwwc
PrimeVue version
3.21.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
Chrome 110
Steps to reproduce the behavior
Expected behavior
the first checked row will unchecked, and the second checked row will still checked, such as in version 3.20
The text was updated successfully, but these errors were encountered: