mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-08 04:01:01 +08:00
🚨
This commit is contained in:
parent
35ef97c25c
commit
2e63ebc2ff
@ -1870,7 +1870,7 @@ export const setFold = (protyle: IProtyle, nodeElement: Element, isOpen?: boolea
|
||||
if (nodeElement.getAttribute("data-type") === "NodeThematicBreak") {
|
||||
return -1;
|
||||
}
|
||||
let hasFold = nodeElement.getAttribute("fold") === "1";
|
||||
const hasFold = nodeElement.getAttribute("fold") === "1";
|
||||
if (hasFold) {
|
||||
if (typeof isOpen === "boolean" && !isOpen) {
|
||||
return -1;
|
||||
|
@ -1059,7 +1059,7 @@ export const openMenuPanel = (options: {
|
||||
removeAttrViewColAnimation(options.blockElement, colId);
|
||||
options.blockElement.setAttribute("updated", newUpdated);
|
||||
avPanelElement.remove();
|
||||
})
|
||||
});
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user