Skip to content

Commit a5604bb

Browse files
committed
fix: tree-select not update when empty
1 parent a5779f2 commit a5604bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/vc-tree-select/OptionList.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default defineComponent({
4141
const memoOptions = useMemo(
4242
() => props.options,
4343
[() => props.open, () => props.options],
44-
(next, prev) => next[0] && prev[1] !== next[1],
44+
next => next[0],
4545
);
4646

4747
const valueKeys = computed(() => {

0 commit comments

Comments
 (0)