-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
IconButton with onClick typescript issues #16327
Comments
馃憢 Thanks for using Material-UI! We use the issue tracker exclusively for bug reports and feature requests, however, If you would like to link from here to your question on SO, it will help others find it. |
If you add an |
I think you're missing the point though. Without the href=, the IDE gives a warning that it is missing. This is something wrong with the type definitions. href isn't a required attribute. |
As with #16328 we don't offer support for every IDE setup. The actual build error after you added the |
@eps1lon This looks like an issue with the type definitions. Should the prop type be |
Looks like this still has not been addressed. |
@rob-glas Do you have a reproduction with v5-alpha.8? |
I can still reproduce this. While the generated page uses a |
OK, I found that I misplaced a |
Expected Behavior 馃
No warnings in my IDE. I don't need to add the
href=
attribute because my onClick handler deals with things for me.Current Behavior 馃槸
Catch 22 error. If I don't have href, I get a warning about not having href. If I have href, then I get an error. I suspect I'm doing something stupid.
Steps to Reproduce 馃暪
Context 馃敠
Error after adding href={''}
Your Environment 馃寧
The text was updated successfully, but these errors were encountered: