-
Notifications
You must be signed in to change notification settings - Fork 415
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
Problems with keyboard in mobile #189
Comments
So, I put the type='tel', but in iOS mobile no has the ',' and the '.' to digit decimal numbers, then i'm back to type text. What I did to solve my problem, is ugly but work for me: In onFocus I change the state to render without props fixedDecimalScale and thousandSeparator, and in onBlur I change the state again to render with theese two props. Two problems I solve this way:
|
it would be more convenient if it support input type="number". changing keyboard in mobile to numbers are actually annoying when the input should get numbers only. |
<NumberFormat I used this code. If we can find a way to bring "," to the ios keyboard, the problem will be solved Android is correct, but iOS not display "," comma.. Can you help me? |
same with you. |
here you can see unfortunately Firefox doesn't support "inputmode" attribute. |
@dccarmo I will check this. This does says it will show correct input on inputmode="numeric" In meanwhile you can still override it using. <NumberFormat inputMode="decimal" /> or remove it using <NumberFormat inputMode={false} /> |
@dccarmo Can you also share device and OS information. |
@s-yadav That's great, I didn't know we could override it. I'm testing on an iPhone XS Max on iOS 13.4.1. |
@dccarmo The latest release removes inputmode on IOS device when decimals, minus characters are required. |
@s-yadav Awesome, thank you! I think this issue can probably be closed (@nataliazanolli). |
Type mismatch: inputMode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search'; (from `node_modules/@types/react/index.d.ts) |
When send the props fixedDecimalScale, or prefix={'$'}, like has one example in demo, the keyboard in mobile has problem.
Select the input to open keyboard, change the keyboard mode to select numbers, when put the first number in input, the keyboard mode returns to letters.
It's like if when change the text of value internally the keyboard mode changes.
The text was updated successfully, but these errors were encountered: