-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Form] Add inputmode=email/numeric/search/tel to form types #45099
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
That's done because When |
Ok for |
For a NumberType with the |
…tic) This PR was merged into the 6.1 branch. Discussion ---------- [Form] Add inputmode attribute on NumberType | Q | A | ------------- | --- | Branch? | 6.1 | Bug fix? | no | New feature? | yes | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | Fix #45099 | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> Quick add of `inputmode` attribute on NumberType, let's discuss about this: - Should it be the default? - Should we add a way to not add the attribute? Thank you @GromNaN for the issue, I had this idea in mind for a long time 😉 Commits ------- f71213b Add inputmode attribute on NumberType
Description
inputmode
is an HTML atttibute for<input>
tag that improve the UX on mobile by displaying an appropriate virtual keyboard based on the expected input. Reference on MDNThis attribute is already set on
UrlType
, only whendefault_protocol
is configured (why?).It should be added to other:
EmailType
NumberType
SearchType
TelType
Example
No response
The text was updated successfully, but these errors were encountered: