bug: IonInput default autocapitalize value disrespects system keyboard settings and relevant browser defaults

未关闭 适合新手
#29,864 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
冷清
技术栈
typescript
领域
frontend

调研方向

从 core/src/components/input/input.tsx 第 71 行开始,将当前的 autocapitalize 默认值与所链接的 MDN 文档中描述的浏览器行为进行比较。确认 ion-input 及相关组件不再强制关闭自动大写,并与所述的浏览器默认值保持一致。

由索引模型根据 Issue 内容生成。

描述

package: core type: bug

https://github.com/ionic-team/ionic-framework/blob/88b701363c1865e81d7d136acab4b9fef3b1ab7a/core/src/components/input/input.tsx#L71

Setting autocapitalize to 'off' by default results in ion-input and related components not respecting the system keyboard settings for autocapitalization and forces developers to explicitly set an overriding value on all ion-inputs, which itself might not respect system settings. Furthermore, this approach does not align with the default behavior of either of the primary OS browsers on which virtually all ionic apps are run.

If this property must necessarily have a default value, the reasonable solution would be to align with the default behavior of the primary OS browser defaults. https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autocapitalize
• Chrome and Safari default to on/sentences

主要语言
TypeScript
星标
52.7k
派生
13.3k
平均合并
2 天 20 小时
30 天内合并 PR
35

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ionic-team/ionic-framework 的其他 Issue

查看 ionic-team/ionic-framework 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。