This commit is contained in:
parent
929d079bc3
commit
d928adab56
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue