ErrorMessage renders nothing unless an explicit error message is set
See original GitHub issueDescribe the bug
ErrorMessage
doesn’t display anything when validation fails and no explicit error message has been set.
To Reproduce
<input name="singleErrorInput" ref={register({ required: true })} />
<ErrorMessage errors={errors} name="singleErrorInput" as="p" />
Expected behavior I expect the component to be rendered with a default error message instead of nothing.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context If this is intended behavior, consider updating the documentation to describe this, because I had to debug the code in the browser to realize what the actual problem was.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Error thrown - Warning: You called act(async () => ...) without ...
The test seems to work fine (passes as written, fails if I change expected values), but I still see the console.error message warning ......
Read more >Stripe API reference – Errors – curl
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries....
Read more >3 of the Most Common Errors in React - Netlify
The quick fix is to be more explicit when set the response data to variables on state.
Read more >Proposed Error message describes invalid form field value
Description. This rule checks that text error messages provided when the user completes a form field with invalid values or using an invalid...
Read more >Error Messages - SQLAlchemy 1.4 Documentation
This error is a DBAPI Error and originates from the database driver (DBAPI), not SQLAlchemy itself.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
i am going to close this issue, as next release will have this feature above.
no worries @kotarella1110 🙏