ionic-team / ionic-team/ionic-framework

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

Open
#29,864 1 comment 0 reactions 0 assignees View on GitHub
package: core type: bug
Dominant language
TypeScript
Stars
52.7k
Forks
13.3k
Avg merge
1d 15h
Merged PRs (30d)
51

Description

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`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.