Skip to content
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] Field组件输入问题 #13149

Closed
mark3h opened this issue Oct 3, 2024 · 0 comments · Fixed by #13150
Closed

[Bug Report] Field组件输入问题 #13149

mark3h opened this issue Oct 3, 2024 · 0 comments · Fixed by #13150
Assignees

Comments

@mark3h
Copy link

mark3h commented Oct 3, 2024

重现链接

https://vant-ui.github.io/vant/#/zh-CN/field

Vant 版本

4.9.6

描述一下你遇到的问题。

Field组件的type为digit或number时,当输入以0为开头的数字,例如012时,输入框会自动格式化为12。
貌似是从最近的版本开始变成这样,官网的版本选为3.x并无此现象。

重现步骤

  1. Field组件的type为digit或number
  2. 输入以0为开头的数字
  3. 会自动格式化抹零

设备/浏览器

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants