How to handle form errors an input when working with ant design #3692
Answered
by
bluebill1049
davidshare
asked this question in
General
-
Please how do I display error messages for form elements - onChange? https://codesandbox.io/s/romantic-cherry-2y24u?file=/src/App.js I know I am doing something wrong, but I do not know what it is. |
Beta Was this translation helpful? Give feedback.
Answered by
bluebill1049
Dec 15, 2020
Replies: 1 comment 2 replies
-
here you go: https://codesandbox.io/s/damp-sound-dlyuc couples things:
worth to spend some times with the doc, they are all documented. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
bluebill1049
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
here you go: https://codesandbox.io/s/damp-sound-dlyuc
couples things:
defaultValue
should be at Controller or at useForm withdefaultValues
onChagne
fromController
should be wire up with your componentmode
should be changed toonChange
worth to spend some times with the doc, they are all documented.