react-component / form

React High Order Form Component(web & react-native)
http://react-component.github.io/form/
MIT License
1.81k stars 296 forks source link

Issue on set error on nested value #196

Open sl5310 opened 6 years ago

sl5310 commented 6 years ago

How to set error on nested value like:vendor.name I have tried to

this.props.form.setFields({vendor: {name: {errors: [new Error('forbid ha')] }}}); and this.props.form.setFields({vendor.name: { errors: [new Error('forbid ha')] }});

both does not work at all