Skip to content

v1.0.4

Choose a tag to compare

@github-actions github-actions released this 28 Aug 10:03
· 4 commits to main since this release

🛠 Bug Fixes (修复)

  • 修复全部弹窗无法打开(v1.0.2 回归):index.html 的弹窗操作按钮容器 <div class="modal-actions"> 缺少 id="modal-actions",而 v1.0.2(TB-03 dirty 确认条)起 modal.js 通过 $("modal-actions")(getElementById)访问它——恒为 null,openModal 一执行即抛 TypeError: can't access property "hidden", $(...) is null,组/会话配置、删除/重置确认等所有弹窗打开即失败(v1.0.1 的 modal.js 不引用该 id,故为 v1.0.2 引入的回归)。补回缺失的 id="modal-actions"。
  • 新增前端 id 一致性回归测试(tests/frontend/page_ids.test.mjs):静态校验页面 JS 中 $("…") / getElementById("…") 引用的每个 id 均须在 index.html 中定义、且 index.html 不得出现重复 id——防 HTML / JS 两侧不同步再次漏网(本次漏改正是此类问题,且此前测试仅覆盖 pure.js 纯函数)。