🐛 The referenced block under the folded heading cannot be hovered to view Fix https://github.com/siyuan-note/siyuan/issues/9582

This commit is contained in:
Daniel 2023-11-10 09:07:21 +08:00
parent 433f4d5541
commit 2802efdfb3
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 6 additions and 3 deletions

View file

@ -722,8 +722,12 @@ func GetDoc(startID, endID, id string, index int, query string, queryTypes map[s
}
if "1" == n.IALAttr("heading-fold") {
unlinks = append(unlinks, n)
return ast.WalkContinue
// 折叠标题下被引用的块无法悬浮查看
// The referenced block under the folded heading cannot be hovered to view https://github.com/siyuan-note/siyuan/issues/9582
if 0 != mode && id != n.ID {
unlinks = append(unlinks, n)
return ast.WalkContinue
}
}
if "" != n.ID {

View file

@ -54,7 +54,6 @@ func (tx *Transaction) doFoldHeading(operation *Operation) (ret *TxErr) {
return ast.WalkContinue
}
n.SetIALAttr("fold", "1")
n.SetIALAttr("heading-fold", "1")
return ast.WalkContinue
})