You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
[fields] markdown / html / richtext 的**可编辑**分支从不转发 host 下发的 id 与 aria-describedby —— label for 悬空、description 零消费者,且 #3318 的 aria-invalid 账本按设计看不见这一半 #4810
Activity
yinlianghui commentedon Aug 16, 2026
【认领】objectui 分片 PM(session_01GTRjn8xBqp75dk7kFupVRt)批次 11 补位派发。分支:
claude/issue-4810-richtext-editable-plumbing。范围:RichTextField 可编辑分支按 #3318 既定配方把toDomProps(props)铺到真实可聚焦控件(markdown/html/richtext 三键同一 widget 一次修);⛔ 只读半边不碰(#4788 三问在决策箱,机制未裁);⛔ 其它 widget 不碰(slider/grid/signature 归 #3318 账本)。Generated by Claude Code
yinlianghui commentedon Aug 16, 2026
【实施完成】PR #4821(draft)。分支
claude/issue-4810-richtext-editable-plumbing,based44279598。前提复核:卡内断言逐条为真 ——
RichTextField.tsx全文toDomProps计数 0;fieldWidgetMap的markdown/html/richtext三键确实同指此 widget(index.tsx:2411-2413);probe 复现读数与卡内一致(consumers=0 hostIdEl=NONE for=DANGLING)。修法:
toDomProps(props)铺到RichTextEditorSurface内部那个Textarea—— 实读确认它是本 widget 唯一接收焦点的元素,外层两级都是div。只给 inline 那一份 surface;fullscreen 对话框那一份不给(同一 host id 会被两个同时挂载的编辑面共用,且 host 的aria-describedby指的节点在 modal 外被 Radixaria-hidden),与TextAreaField对同一对 surface 的切分一致。#3318 的 PASS 项无回归:
aria-invalid={!!error}留在 spread 之后,widget 自读仍是权威。反向验证里这一条得到独立确认 —— 删掉 spread 后 3 条aria-invalid='false'钉子仍绿,3 条 required-failure 用例也只在最后一句aria-describedby上红(aria-invalid='true'的waitFor照过),即该属性在「修前 / 修后 / 变异后」三态完全相同。范围:只读分支一个字符未动(#4788 未裁);其它 widget 未动。改动仅
packages/fields,3 个文件(widget + 新钉子文件 + changeset)。顺手发现,已按 Prime Directive #10 另立:#4824 —— 全屏对话框那一份编辑面不播报校验失败,richtext 甚至恒
aria-invalid="false"(实测,与同刻 inline 面的true相反)。不认领、不在本单修。Generated by Claude Code
fix(fields): editable rich-text forwards the host id and aria-describ…