This commit is contained in:
tamaina 2023-08-01 12:09:21 +00:00
parent 39d686ad11
commit 93e8317da1
1 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ async function showChildren(item: MenuParent, ev: MouseEvent) {
} }
if (props.asDrawer) { if (props.asDrawer) {
os.popupMenu(children.value as MenuItem[], ev.currentTarget ?? ev.target, { os.popupMenu(children as Ref<MenuItem[]>, ev.currentTarget ?? ev.target, {
onClosing: () => { onClosing: () => {
close(); close();
} }
@ -178,7 +178,7 @@ async function showChildren(item: MenuParent, ev: MouseEvent) {
emit('hide'); emit('hide');
} else { } else {
childTarget = ev.currentTarget ?? ev.target; childTarget = ev.currentTarget ?? ev.target;
childMenu = children; childMenu = children as Ref<MenuItem[]>;
childShowingItem = item; childShowingItem = item;
} }
} }