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 handle onChange when onBlur. But it is not change. #16622

Closed
1 task done
cxyxc opened this issue May 16, 2019 · 0 comments
Closed
1 task done

InputNumber handle onChange when onBlur. But it is not change. #16622

cxyxc opened this issue May 16, 2019 · 0 comments
Assignees
Labels
🐛 Bug Ant Design Team had proved that this is a bug. 👷🏻‍♂️ Someone working on it

Comments

@cxyxc
Copy link

cxyxc commented May 16, 2019

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

Reproduction link

Edit on CodeSandbox

Steps to reproduce

use these props:

precision={2}
formatter={value => `${value}%`}
parser={value => value.replace("%", "")}

Focus InputNumber, do nothing and move out of focus. Number is not change but onChange is runing.

What is expected?

When number not change, not handle onChange Event.

What is actually happening?

Number not change, but onChange is runing.

Environment Info
antd 3.18.1
React 16.9.0
System win10
Browser 70.0.3538.110
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Ant Design Team had proved that this is a bug. 👷🏻‍♂️ Someone working on it
Projects
None yet
Development

No branches or pull requests

3 participants