Skip to content

Fix IsInFoldedHeading treating folded list items as folded headings - #18160

Merged
88250 merged 1 commit into
siyuan-note:devfrom
TCOTC:fix/IsInFoldedHeading
Jul 8, 2026
Merged

Fix IsInFoldedHeading treating folded list items as folded headings#18160
88250 merged 1 commit into
siyuan-note:devfrom
TCOTC:fix/IsInFoldedHeading

Conversation

@TCOTC

@TCOTC TCOTC commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Description / 描述

#18036 改进之后正常的折叠列表渲染不出来了:

PixPin_2026-07-09_07-11-16

发现 IsInFoldedHeading 里调用的 HeadingParent 不一定会返回一个标题块,会导致将折叠的列表项块误判为折叠的标题块。本 PR 增加了一个类型判断。

Type of change / 变更类型

  • Bug fix
    缺陷修复
  • Refactoring
    代码重构
  • New feature
    新功能
  • Text updates or new language additions
    修改文案或增加新语言

Checklist / 检查清单

  • I have performed a self-review of my own code
    我对自己的代码进行了自我审查
  • I have full rights to the submitted code and agree to license it under this project's AGPL-3.0 license
    我拥有所提交代码的完整权利,并同意其以本项目的 AGPL-3.0 许可证授权
  • PR is submitted to the dev branch and has no merge conflicts
    PR 提交到 dev 分支,并且没有合并冲突

@88250
88250 merged commit 174cbef into siyuan-note:dev Jul 8, 2026
1 check passed
@88250 88250 added the Bug label Jul 8, 2026
@88250

88250 commented Jul 8, 2026

Copy link
Copy Markdown
Member

v3.7.2

@TCOTC
TCOTC deleted the fix/IsInFoldedHeading branch July 8, 2026 23:19
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants