Skip to content

Commit ff436c0

Browse files
authored
fix: always make selectedKeys be array #3978 (#3984)
1 parent 6d33d60 commit ff436c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/vc-menu/Menu.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const Menu = {
3434
watch(
3535
() => props.selectedKeys,
3636
() => {
37-
selectedKeys.value = props.selectedKeys;
37+
selectedKeys.value = props.selectedKeys || [];
3838
},
3939
);
4040
watch(

0 commit comments

Comments
 (0)