Description
Provide a general summary of the issue here
Regardless of what is set in I18nProvider
, NumberField
always opens iPhone numeric keyboard with ,
instead of .
if the iPhone region is set to such that they use that decimal separator.
This makes it impossible to input in decimals.
🤔 Expected Behavior?
Honestly, don't know. I've read about iPhone numeric keyboards and apparently there's no way to change which numeric keyboard is going to be displayed.
Ideally, the keyboard would open with locale identical to the provided to I18nProvider
, or it would be possible to change NumberField
locale so that it corresponds to iPhone's regional settings.
😯 Current Behavior
Currently, for sk-SK
regional settings in iPhone and en-GB
in I18nProvider
, the iPhone numeric keyboard opens with ,
instead of .
as the decimal separator.
💁 Possible Solution
- give an option to open up the full keyboard, as for
input[type='number']
. slightly worse UX, but much better than being unable to input in decimals - find a way to sync
I18nProvider
locale with iPhone regional settings
🔦 Context
I am trying to open up numeric keyboard on iPhone with the correct, functioning decimal separator.
🖥️ Steps to Reproduce
- Set iPhone to e.g.
Slovak
region - Visit https://codesandbox.io/p/sandbox/gracious-shadow-r445mc
- Open up the number field
- Try typing
13,37
. it will erase the,
, because it expects.
Version
What browsers are you seeing the problem on?
Safari
If other, please specify.
No response
What operating system are you using?
iOS 17
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response
Metadata
Metadata
Assignees
Type
Projects
Status
🩺 To Triage