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

Getting this error -> Warning: Failed prop type: Invalid prop disabled of type string #45088

Closed
farrukh-develo opened this issue Jan 22, 2025 · 4 comments
Assignees
Labels
component: button This is the name of the generic UI component, not the React module! status: waiting for author Issue with insufficient information

Comments

@farrukh-develo
Copy link

farrukh-develo commented Jan 22, 2025

Steps to reproduce

Render a button and provide disabled prop to it.

Image

Current behavior

Gives a warning

Image

Expected behavior

Should not give warning

Context

No response

Your environment

react: 18.3.1
mui: 6.4.0

Chrome

Search keywords: button

@farrukh-develo farrukh-develo added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jan 22, 2025
@juan-padilla
Copy link

juan-padilla commented Jan 22, 2025

I’ve noticed that these warnings started appearing after upgrading to version 6.4.0. In version 6.3.1, I don’t encounter any warnings. To troubleshoot, I even used the example code provided on your site and pasted it directly into a test file in my env, but the ‘failed prop’ warnings still persist. Can you provide more clarity on which specific props might be causing this issue? This makes it challenging to pinpoint and resolve the problem.

@tpoprac
Copy link

tpoprac commented Jan 22, 2025

Image

I am also encountering similar issues. i get about 25-30 warnings about "Invalid Prop Children". Unable to pinpoint the exact errors. Following docs correctly, need an understanding on how to fix these issues. Issue occurred updating to 6.4.0. I am currently using 6.4.1 and issues persist.

@zannager zannager added the component: button This is the name of the generic UI component, not the React module! label Jan 23, 2025
@DiegoAndai
Copy link
Member

Hey everyone! Thanks for the reports; I'm sorry for the inconvenience.

Could you provide a minimal reproduction? This would help a lot. A live example would be perfect. This StackBlitz sandbox template may be a good starting point.

Without a minimal reproduction, it is quite complicated to debug the issue.

Thank you!

@DiegoAndai DiegoAndai added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 23, 2025
Copy link

Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: button This is the name of the generic UI component, not the React module! status: waiting for author Issue with insufficient information
Projects
None yet
Development

No branches or pull requests

5 participants