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

How to use the out-of-focus event after the InputNumber of antd is wrapped by the form #4193

Closed
watsonLidaye opened this issue Jun 10, 2021 · 2 comments
Labels

Comments

@watsonLidaye
Copy link


<Form.Item addonafter="999" name="physicalsNum" label="体检限额" colon={false} className={style.quota_mgl_20}>
<InputNumber onBlur={e=>{this.changeInput(e,'physicalsNum')}} maxLength={3} placeholder="请输入数字" className={style.quota_mgl_20_input} />
</Form.Item>

为啥我这个changeInput不执行都要疯了,一方面Form.Item 上线onchange 不能使用数字输入框的上下箭头回调,不用formItem使用inputNumber 的 onBlur却无法使用失去焦点,怎么解决

@close-issue-app
Copy link

Your issue has been closed because it does not conform to our issue requirements. Please use the Issue Helper to create an issue, thank you!

为了能够进行高效沟通,我们对 issue 有一定的格式要求,你的 issue 因为不符合要求而被自动关闭。你可以通过 issue 助手 来创建 issue 以方便我们定位错误。谢谢配合!

@github-actions github-actions bot changed the title antd 的InputNumber被form包裹后如何使用失焦事件 How to use the out-of-focus event after the InputNumber of antd is wrapped by the form Jun 10, 2021
@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 Jun 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant