We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f8c75c commit 278478bCopy full SHA for 278478b
components/vc-tree-select/hooks/useTreeData.ts
@@ -63,7 +63,7 @@ export default function useTreeData(
63
rootPId: null,
64
...(simpleModeValue !== true ? simpleModeValue : {}),
65
})
66
- : toRaw(treeData.value);
+ : toRaw(treeData.value).slice();
67
} else {
68
mergedTreeData.value = convertChildrenToData(toRaw(children.value));
69
}
components/vc-tree/Tree.tsx
@@ -109,7 +109,7 @@ export default defineComponent({
109
() => {
110
treeData.value =
111
props.treeData !== undefined
112
- ? toRaw(props.treeData)
+ ? toRaw(props.treeData).slice()
113
: convertTreeToData(toRaw(props.children));
114
},
115
{ immediate: true, deep: true },
0 commit comments