-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
Button: LinkComponent in Theme is not used #44389
Comments
@BennyAlex what do you mean by, In this sandbox, i can see |
(click go to demo) This shows the error and also it looks like all default Props are ignored for some reason. It should show outlined buttons by default and replace the link with the link from the url mapping. |
The same code worked fine with mui v5 |
@BennyAlex Few imports are missing in your repro, can you add missing imports in this file and check again? https://stackblitz.com/edit/react-ndqyxk-run8w3?file=RouterLink.jsx |
@sai6855 should be there now, still the same behaviour |
@BennyAlex I've updated version of https://stackblitz.com/edit/react-ndqyxk-yvvn19?file=package.json |
I was also on the latest I think. |
@BennyAlex Found the issue, defaultProps are not being applied because you imported updated import in below sandbox, it's working now https://stackblitz.com/edit/react-ndqyxk-buu58f?file=BaseRoute.jsx |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @BennyAlex How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
@BennyAlex feel free to re-open the issue, if you face any issues |
@sai6855 |
Steps to reproduce
Previously in v5 I defined the LinkComponent inside theme
and it worked fine.
Not this doesnt work anymore.
I only see my link component when I do it manually for each button like:
https://mui.com/material-ui/integrations/routing/#button
Current behavior
No response
Expected behavior
No response
Context
No response
Your environment
npx @mui/envinfo
Search keywords: LinkComponent
The text was updated successfully, but these errors were encountered: