Skip to content

Commit

Permalink
fix(components): [table] selection reference when toggleAllSelection
Browse files Browse the repository at this point in the history
  • Loading branch information
Liao-js committed May 10, 2024
1 parent 42472c1 commit 9d75f1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/table/src/store/watcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ function useWatcher<T>() {
selection.value ? selection.value.slice() : []
)
}
instance.emit('select-all', selection.value)
instance.emit('select-all', (selection.value || []).slice())
}

const updateSelectionByRowKey = () => {
Expand Down

0 comments on commit 9d75f1b

Please sign in to comment.