-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
[Bug Report] van-field type=number not allow decimal points in iOS devices #12594
Comments
You can try using the |
The digit type doesn’t allow decimals, does it? I need decimals
…On Wed, 24 Jan 2024 at 16:45 inottn ***@***.***> wrote:
You can try using the digit type.
—
Reply to this email directly, view it on GitHub
<#12594 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARA5MVNS4ZL3GVERP2JSGXDYQDJZXAVCNFSM6AAAAABCIMAIZ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBXG43DONBRGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Sorry, I misunderstood. However, I haven't been able to reproduce this issue on iOS 14 and 15. Could you please provide a screenshot? |
Some regions like France use comma as their decimal mark by default, you can still choose decimal point style number format by Vant side can't do anything for it. That's what you can expect as a native |
A native The ISO standard says:
The dot is vastly used outside USA and China (https://en.wikipedia.org/wiki/Decimal_separator#/media/File:DecimalSeparator.svg) |
重现链接
https://vant-ui.github.io/vant/#/en-US/field
Vant 版本
latest
描述一下你遇到的问题。
It does bring up the numeric keyboard, however decimal points are not allowed/clickable.
It actually works on Chrome 117.0.5938.155/ Android, but not in any browsers in iOS.
重现步骤
设备/浏览器
Safari/iOS 16.7.4, Chrome 117.0.5938.117/iOS
The text was updated successfully, but these errors were encountered: