Skip to content

Commit

Permalink
fix(components): [cascader] checkbox sync error (#11462)
Browse files Browse the repository at this point in the history
* fix(components): [cascader] sync error

* fix(components): [cascader] checkbox sync error
  • Loading branch information
acyza committed Aug 2, 2023
1 parent 18c1c77 commit 69dcee0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/components/cascader-panel/src/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,11 @@ export default defineComponent({
}
oldNodes.forEach((node) => node.doCheck(false))
newNodes.forEach((node) => node.doCheck(true))
if (props.props.multiple) {
reactive(newNodes).forEach((node) => node.doCheck(true))
} else {
newNodes.forEach((node) => node.doCheck(true))
}
checkedNodes.value = newNodes
nextTick(scrollToExpandingNode)
}
Expand Down

0 comments on commit 69dcee0

Please sign in to comment.