Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: React does not recognize the hideError prop on a DOM element #3945

Closed
3 of 4 tasks
ValYouW opened this issue Nov 9, 2023 · 2 comments · Fixed by #3952
Closed
3 of 4 tasks

Error: React does not recognize the hideError prop on a DOM element #3945

ValYouW opened this issue Nov 9, 2023 · 2 comments · Fixed by #3952
Labels
bug help wanted material-ui material-ui related theme issue

Comments

@ValYouW
Copy link
Contributor

ValYouW commented Nov 9, 2023

Prerequisites

What theme are you using?

mui

Version

5.13.6

Current Behavior

Starting at 5.13.6 I get the following error in the console:

Warning: React does not recognize the `hideError` prop on a DOM element

I didn't investigate it further aside from the fact that this error doesn't happen on 5.13.5 and that most likely it is coming from
packages/mui/src/BaseInputTemplate/BaseInputTemplate.tsx where hideError is not being extracted from props.

@ValYouW ValYouW added bug needs triage Initial label given, to be assigned correct labels and assigned labels Nov 9, 2023
@heath-freenome heath-freenome added help wanted and removed needs triage Initial label given, to be assigned correct labels and assigned labels Nov 10, 2023
@heath-freenome
Copy link
Member

@ValYouW Are you willing to provide a fix for BaseInputTemplate in the mui and material-ui themes (they are the same code)?

@ValYouW
Copy link
Contributor Author

ValYouW commented Nov 13, 2023

@heath-freenome Done.

ValYouW added a commit to ValYouW/react-jsonschema-form that referenced this issue Nov 13, 2023
heath-freenome added a commit that referenced this issue Nov 15, 2023
* prevent hideError prop from being passed to material components. fixes #3945

* update CHANGELOG

---------

Co-authored-by: Heath C <51679588+heath-freenome@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug help wanted material-ui material-ui related theme issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants