fix
This commit is contained in:
parent
39d686ad11
commit
93e8317da1
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue