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

InputNumber 数字输入框 官方DEMO第一个演示,输入16个9,变成10000000000000000 #1717

Closed
1 task
ximan opened this issue Jan 13, 2020 · 3 comments

Comments

@ximan
Copy link

ximan commented Jan 13, 2020

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.4.10

Environment

Reproduction link

https://www.antdv.com/components/input-number-cn/

Steps to reproduce

1、打开https://www.antdv.com/components/input-number-cn/
2、在第一个案例的input框里删掉默认值3,一直输入9
3、输到第16位,变成10000000000000000

What is expected?

由于此案例里有:max="10",期望只能输入一个9,就无法输入

What is actually happening?

可以一直输入

@sendya
Copy link
Member

sendya commented Jan 14, 2020

react input-number 有相同情况,待后续跟进
https://ant.design/components/input-number/

https://codesandbox.io/s/condescending-colden-cudev

@tangjinzhou
Copy link
Member

image
超js能够处理的数字限制了

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants