Skip to content

Commit

Permalink
fix: tree-select not update when empty
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Oct 29, 2021
1 parent a5779f2 commit a5604bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/vc-tree-select/OptionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default defineComponent({
const memoOptions = useMemo(
() => props.options,
[() => props.open, () => props.options],
(next, prev) => next[0] && prev[1] !== next[1],
next => next[0],
);

const valueKeys = computed(() => {
Expand Down

0 comments on commit a5604bb

Please sign in to comment.