Vanessa 2024-12-25 19:15:33 +08:00
parent 929d079bc3
commit d928adab56

View file

@ -1289,7 +1289,7 @@ export const openMenuPanel = (options: {
event.stopPropagation();
break;
} else if (type === "av-view-switch") {
if (!target.querySelector(".b3-chip--primary")) {
if (!target.parentElement.classList.contains("b3-menu__item--current")) {
options.blockElement.removeAttribute("data-render");
avRender(options.blockElement, options.protyle, undefined, target.parentElement.dataset.id);
}
@ -1297,7 +1297,7 @@ export const openMenuPanel = (options: {
event.stopPropagation();
break;
} else if (type === "av-view-edit") {
if (target.parentElement.querySelector(".b3-chip--primary")) {
if (target.parentElement.classList.contains("b3-menu__item--current")) {
openViewMenu({
protyle: options.protyle,
blockElement: options.blockElement as HTMLElement,