This commit is contained in:
Vanessa 2024-03-25 17:38:13 +08:00
parent 35ef97c25c
commit 2e63ebc2ff
2 changed files with 2 additions and 2 deletions

View File

@ -1870,7 +1870,7 @@ export const setFold = (protyle: IProtyle, nodeElement: Element, isOpen?: boolea
if (nodeElement.getAttribute("data-type") === "NodeThematicBreak") { if (nodeElement.getAttribute("data-type") === "NodeThematicBreak") {
return -1; return -1;
} }
let hasFold = nodeElement.getAttribute("fold") === "1"; const hasFold = nodeElement.getAttribute("fold") === "1";
if (hasFold) { if (hasFold) {
if (typeof isOpen === "boolean" && !isOpen) { if (typeof isOpen === "boolean" && !isOpen) {
return -1; return -1;

View File

@ -1059,7 +1059,7 @@ export const openMenuPanel = (options: {
removeAttrViewColAnimation(options.blockElement, colId); removeAttrViewColAnimation(options.blockElement, colId);
options.blockElement.setAttribute("updated", newUpdated); options.blockElement.setAttribute("updated", newUpdated);
avPanelElement.remove(); avPanelElement.remove();
}) });
event.preventDefault(); event.preventDefault();
event.stopPropagation(); event.stopPropagation();
break; break;