mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
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();
|
event.stopPropagation();
|
||||||
break;
|
break;
|
||||||
} else if (type === "av-view-switch") {
|
} 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");
|
options.blockElement.removeAttribute("data-render");
|
||||||
avRender(options.blockElement, options.protyle, undefined, target.parentElement.dataset.id);
|
avRender(options.blockElement, options.protyle, undefined, target.parentElement.dataset.id);
|
||||||
}
|
}
|
||||||
|
|
@ -1297,7 +1297,7 @@ export const openMenuPanel = (options: {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
break;
|
break;
|
||||||
} else if (type === "av-view-edit") {
|
} else if (type === "av-view-edit") {
|
||||||
if (target.parentElement.querySelector(".b3-chip--primary")) {
|
if (target.parentElement.classList.contains("b3-menu__item--current")) {
|
||||||
openViewMenu({
|
openViewMenu({
|
||||||
protyle: options.protyle,
|
protyle: options.protyle,
|
||||||
blockElement: options.blockElement as HTMLElement,
|
blockElement: options.blockElement as HTMLElement,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue