Skip to content

Commit

Permalink
fix(checkbox): value.splice does not work (#2896)
Browse files Browse the repository at this point in the history
* feat(checkbox): support Array.splice

* revert: demo
  • Loading branch information
chaishi authored Nov 8, 2023
1 parent a0501fc commit 2f2c595
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/checkbox/group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ export default defineComponent({
);

watch(
[innerValue],
([val], [oldValue]) => {
() => [...innerValue.value],
(val, oldValue) => {
nextTick(() => {
checkboxStore.updateChecked({
checked: val,
Expand Down

0 comments on commit 2f2c595

Please sign in to comment.