[Bug Report] van-field type=number not allow decimal points in iOS devices
kien-ht opened this issue · comments
重现链接
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.
重现步骤
- Go to https://vant-ui.github.io/vant/#/en-US/field
- Look for "Custom Type" demo
- Type in "Number" field
设备/浏览器
Safari/iOS 16.7.4, Chrome 117.0.5938.117/iOS
You can try using the digit
type.
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 Settings
⇒ Language & Region
⇒ Number Format
.
Vant side can't do anything for it. That's what you can expect as a native <input type="number">
, maybe there will be a document mentioned about it.