material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

[LoadingButton] Displaying incorrect warning

Open songhobby opened this issue 2 years ago • 11 comments

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

songhobby avatar Feb 28 '22 04:02 songhobby

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

andrebnassis avatar Mar 08 '22 11:03 andrebnassis

+1

shkhalid avatar Oct 29 '22 10:10 shkhalid

+1

nishina-y avatar Nov 04 '22 16:11 nishina-y

Hi there, any updates on this? Has this been fixed already? I'm on @mui/[email protected] and the warning is still present

buzzb0x avatar Jan 17 '23 07:01 buzzb0x

+1

CorentinR3 avatar Feb 28 '23 19:02 CorentinR3

+1. I can confirm this issue still exists at "@mui/lab": "^5.0.0-alpha.142".

baki-kucukcakiroglu avatar Aug 30 '23 09:08 baki-kucukcakiroglu

It works well in Joy UI without any warning. See - https://mui.com/joy-ui/react-button/#loading-position.

ZeeshanTamboli avatar Nov 11 '23 12:11 ZeeshanTamboli

+1

mmoreno2-rbi avatar Feb 07 '24 19:02 mmoreno2-rbi

+1

andrew-amp avatar Feb 12 '24 04:02 andrew-amp

+1

woigl avatar Feb 12 '24 04:02 woigl

+1. Still getting a warning for @mui/lab": "^5.0.0-alpha.170".

simarmannsingh avatar May 05 '24 23:05 simarmannsingh

I can confirm this in "@mui/lab": "5.0.0-alpha.170" and "@mui/material": "^5.14.17",

dil-anunez avatar Jun 17 '24 23:06 dil-anunez

+1

CorentinR3 avatar Jun 18 '24 09:06 CorentinR3

+1 with "@mui/lab": "^5.0.0-alpha.69"

jfaMan avatar Aug 13 '24 06:08 jfaMan

Hello, also experiencing this, any plans to fix it?

triglian avatar Aug 23 '24 10:08 triglian