ionic-team / ionic-team/ionic-framework

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

未关闭 适合新手
#29,864 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
package: core type: bug
主要语言
TypeScript
星标
52.7k
派生
13.3k
平均合并
1 天 15 小时
30 天内合并 PR
51

描述

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`

贡献指南

打开贡献指南

调研方向

Start in core/src/components/input/input.tsx at line 71 and compare the current autocapitalize default with the browser behavior described in the linked MDN documentation. Confirm that ion-input and related components no longer force autocapitalization off and align with the stated browser defaults.

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

评估

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

把新 issue 发到你的邮箱

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