Skip to content

Commit

Permalink
fix(Table): remove @select event on checkbox (#3042)
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin Canac <[email protected]>
  • Loading branch information
rdjanuar and benjamincanac authored Jan 8, 2025
1 parent c70d297 commit d9d4f19
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/runtime/components/data/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@
v-bind="ui.default.checkbox"
aria-label="Select row"
@change="onChangeCheckbox($event, row)"
@click.capture.stop="() => onSelect(row)"
/>
</slot>

Expand Down Expand Up @@ -445,8 +444,7 @@ export default defineComponent({
if (checked) {
selected.value = props.singleSelect ? [row] : [...selected.value, row]
} else {
const index = selected.value.findIndex(item => compare(item, row))
selected.value.splice(index, 1)
selected.value = selected.value.filter(value => !compare(toRaw(value), toRaw(row)))
}
}
Expand Down

0 comments on commit d9d4f19

Please sign in to comment.