From b79f89d8a01b51a3568ee2c60543db11e5d9c073 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sun, 21 Sep 2025 12:18:40 +0800 Subject: [PATCH] :art: Improve copy/cut/delete `Headings and Bottom Blocks` menu https://github.com/siyuan-note/siyuan/issues/15797 Signed-off-by: Daniel <845765@qq.com> --- kernel/model/block.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kernel/model/block.go b/kernel/model/block.go index 6f4ccf155..9ebe50a33 100644 --- a/kernel/model/block.go +++ b/kernel/model/block.go @@ -741,7 +741,11 @@ func GetHeadingChildrenDOM(id string, removeFoldAttr bool) (ret string) { return ast.WalkContinue }) - child.SetIALAttr("parent-heading", id) + if removeFoldAttr { + child.RemoveIALAttr("parent-heading") + } else { + child.SetIALAttr("parent-heading", id) + } } if removeFoldAttr {