websemantics / awesome-ant-design

A curated list of Ant Design resources and related projects. The main idea is that everyone can contribute here, so we can have a central repository of informations about Ant Design that we keep up-to-date
http://ant.design/
Other
3.15k stars 217 forks source link

validateStatus and rule required together is possible?! #84

Closed matanmarciano closed 1 year ago

matanmarciano commented 1 year ago

I am trying to render an InputNumber component via antd with rule required AND validate status mechanism. my code:


                                   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.