Problem.
Currently the error is tightly bound to the final form wrapper. While this is what you want in 90% of all cases. There are situation where developers need to set the error from outside. While it is possible to handle the when using the showError prop. It is not possible to set the fieldProp to the error state.
Problem. Currently the error is tightly bound to the final form wrapper. While this is what you want in 90% of all cases. There are situation where developers need to set the error from outside. While it is possible to handle the when using the
showError
prop. It is not possible to set the fieldProp to the error state.Allow setting the fieldProp to an error state
the textfield code could look like this:
While the show error methods could check wether
propError == null
then do the old behavior otherwise overridesubmitError
andmeta.error
.