This commit is contained in:
tamaina
2023-08-01 12:09:21 +00:00
parent 39d686ad11
commit 93e8317da1
+2 -2
View File
@@ -170,7 +170,7 @@ async function showChildren(item: MenuParent, ev: MouseEvent) {
}
if (props.asDrawer) {
os.popupMenu(children.value as MenuItem[], ev.currentTarget ?? ev.target, {
os.popupMenu(children as Ref<MenuItem[]>, ev.currentTarget ?? ev.target, {
onClosing: () => {
close();
}
@@ -178,7 +178,7 @@ async function showChildren(item: MenuParent, ev: MouseEvent) {
emit('hide');
} else {
childTarget = ev.currentTarget ?? ev.target;
childMenu = children;
childMenu = children as Ref<MenuItem[]>;
childShowingItem = item;
}
}