Skip to content

Commit

Permalink
fix(DataTable): use correct model binding for select checkboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
tewshi committed Jan 26, 2024
1 parent 75f8ae1 commit a7bedae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/tables/DataTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1021,10 +1021,10 @@ onMounted(() => {
>
<Checkbox
:data-cy="`table-toggle-check-${index}`"
:value="isSelected(row[rowIdentifier])"
:model-value="isSelected(row[rowIdentifier])"
color="primary"
hide-details
@input="onSelect($event, row[rowIdentifier])"
@update:model-value="onSelect($event, row[rowIdentifier])"
/>
</td>
Expand Down
4 changes: 2 additions & 2 deletions src/components/tables/TableHead.vue
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,11 @@ function getSortDirection(key: TableColumn<T>['key']) {
<Checkbox
:disabled="disableCheckAll"
:indeterminate="indeterminate"
:value="isAllSelected"
:model-value="isAllSelected"
color="primary"
data-cy="table-toggle-check-all"
hide-details
@input="onToggleAll($event)"
@update:model-value="onToggleAll($event)"
/>
</th>

Expand Down

0 comments on commit a7bedae

Please sign in to comment.