-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
input-number 设置 min 或者 precision 参数后,会在输入过程中不停格式化成错误的值 #3249
Comments
应该只是 文档 有问题,具体使用没问题的 |
不是的,是启动开发模式没问题,构建过后的就有问题。 this.setState({
focused: true,
}); 没有生效,导致 onChange 里面 this.inputting 状态没生效,然后导致后面一直不停格式化。应该是 focus 事件的时机问题 开发模式无法重现这个问题,生产模式运行就会有问题 |
@tangjinzhou 这个确实是Bug呀,而且还挺严重,用户不可能在开发模式用 |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Version
2.0.0-rc.1
Environment
win10, Chrome 78, vue3.0.2
Reproduction link
https://2x.antdv.com/components/input-number-cn/#小数
Steps to reproduce
官网案例:小数
输入数字1
What is expected?
输入框不应该格式化,而应该还是 1
What is actually happening?
输入框的值格式化成了 1.0
The text was updated successfully, but these errors were encountered: