Can I prevent fieldName from defaulting to id for error messages. #3382
Unanswered
silvaDominic
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Can you create a demo for this? you can use codesandbox |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I wrote a validator that I assumed would produce a more generic message if fieldName was undefined/null (i.e. the name attribute was not set on an input field).
It turns out that if a name is not provided the fieldName defaults to the input id. My id is not useable as a field name.
Is there a way to prevent the fallback? Should it even use id?
Beta Was this translation helpful? Give feedback.
All reactions