@lvce-editor/renderer-process 24.1.0 → 24.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3549,6 +3549,10 @@ const handleBackDropMouseDown = event => {
|
|
|
3549
3549
|
preventDefault(event);
|
|
3550
3550
|
stopPropagation(event);
|
|
3551
3551
|
send(/* Menu.hide */'Menu.hide');
|
|
3552
|
+
if (state$3.$BackDrop) {
|
|
3553
|
+
remove$1(state$3.$BackDrop);
|
|
3554
|
+
state$3.$BackDrop = undefined;
|
|
3555
|
+
}
|
|
3552
3556
|
};
|
|
3553
3557
|
const handleContextMenu$8 = event => {
|
|
3554
3558
|
preventDefault(event);
|
|
@@ -3587,6 +3591,11 @@ const hideSubMenu = level => {
|
|
|
3587
3591
|
for (const $ChildMenu of $$ChildMenus) {
|
|
3588
3592
|
remove$1($ChildMenu);
|
|
3589
3593
|
}
|
|
3594
|
+
state$3.$$Menus = state$3.$$Menus.slice(0, level);
|
|
3595
|
+
if (state$3.$$Menus.length === 0 && state$3.$BackDrop) {
|
|
3596
|
+
remove$1(state$3.$BackDrop);
|
|
3597
|
+
state$3.$BackDrop = undefined;
|
|
3598
|
+
}
|
|
3590
3599
|
};
|
|
3591
3600
|
|
|
3592
3601
|
// export const showSubMenu = (level, items, parentIndex) => {
|