Skip to content

Set errors programmatically

Compare
Choose a tag to compare
@moubi moubi released this 13 May 09:12
· 68 commits to master since this release
  • ✅ create setErrors() function to allow setting errors from outside Enfrom.
    This feature should cover use cases where errors need to be set as a result on non user input. Fx. calling an API that returns field specific error.
  • 🔨 Do not call setErrors() internally if error is not present for a field when using onChange().