`Input` defaults to `type="string"`
还没有人认领这个 Issue。
评估
调研方向
从 input.rb 中的默认类型和 date_picker.rb 中的 input_attrs 开始,然后检查 date_picker/without_label 快照。在 2.0 线上工作,重新记录 input/、date_picker/ 以及任何其他受影响的 golden 快照,并审查 diff 以确认渲染出的类型是 text 而不是 string。
由索引模型根据 Issue 内容生成。
描述
- Where:
Input's defaulttype:ininput.rb, anddate_picker.rb's
input_attrs(type: "string"). Snapshotdate_picker/without_label. - Effect:
stringis not an HTML input type; browsers fall back to
text, so nothing breaks, but the attribute is invalid and will be
flagged by any validator, including Herb's. - Fix:
type: "text"in both places; re-record (on the 2.0 line)input/*,
date_picker/*and whatever else changes.
Surfaced by the golden HTML suite (PR #536), which pins what 1.6 renders today — this defect included. Per maintainer decision (2026-09-19) main stays as is: this is addressed on the 2.0 line, and the golden snapshot that pins it is re-recorded there with the diff reviewed.
Source: design/v2/follow-up-issues.md.
- 主要语言
- Ruby
- 星标
- 1k
- 派生
- 67
- 平均合并
- 2 天 19 小时
- 30 天内合并 PR
- 18
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ruby-ui/ruby_ui 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
-
bug
难度 2/5 1-3 小时 新手友好度 55/100
-
bug
难度 1/5 1-3 小时 新手友好度 35/100
相似的 Issue
-
feature
难度 2/5 1-3 小时 新手友好度 64/100
betagouv/acces-cible#722 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
foobara/empty-ruby-project-generator#10 · 2 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
-
难度 2/5 1-3 小时 新手友好度 88/100
-
バグ
难度 1/5 1 小时以内 新手友好度 92/100