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

validateStatus and rule required together is possible?! #84

Closed
matanmarciano opened this issue Nov 27, 2022 · 0 comments
Closed

validateStatus and rule required together is possible?! #84

matanmarciano opened this issue Nov 27, 2022 · 0 comments

Comments

@matanmarciano
Copy link

matanmarciano commented Nov 27, 2022

I am trying to render an InputNumber component via antd with rule required AND validate status mechanism. my code:
<Form.Item label='My Name' rules={[{ required: true }]} initialValue={someInitialValue} hasFeedback validateStatus={fieldValidationStatus} help={fieldValidationMessage} name='my_name' ><InputNumber value={fieldValue} onChange={(e) => {setFieldValue(e)}} onBlur={(e) => {handleOnBlurField(e.target.value)}} /></Form.Item>

The issue is that the required rule is just not working..if I remove the help property it will work but I want all of them works together.

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

No branches or pull requests

1 participant