material-ui
material-ui copied to clipboard
[LoadingButton] Displaying incorrect warning
Duplicates
- [X] I have searched the existing issues
Latest version
- [X] I have tested the latest version
Current behavior 😯
<LoadingButton loadingPosition="start" .. .>...
This would prompt a warning
Warning: Failed prop type: MUI: The loadingPosition="start" should be used in combination with startIcon.'
However, the default loadingIndicator
is used and a startIcon
is not necessary here
Expected behavior 🤔
No warning
Steps to reproduce 🕹
No response
Context 🔦
No response
Your environment 🌎
No response
Here there is a repository with a LoadingButton sample that you can reproduce the warning message: https://github.com/andrebnassis/my-lab/tree/issue/mui/31365
+1
+1
Hi there, any updates on this? Has this been fixed already? I'm on @mui/[email protected]
and the warning is still present
+1
+1. I can confirm this issue still exists at "@mui/lab": "^5.0.0-alpha.142".
It works well in Joy UI without any warning. See - https://mui.com/joy-ui/react-button/#loading-position.
+1
+1
+1
+1. Still getting a warning for @mui/lab": "^5.0.0-alpha.170"
.
I can confirm this in "@mui/lab": "5.0.0-alpha.170" and "@mui/material": "^5.14.17",
+1
+1 with "@mui/lab": "^5.0.0-alpha.69"
Hello, also experiencing this, any plans to fix it?