Open adamiku opened 1 year ago
It doesn't look like this bug report has enough info for one of us to reproduce it.
Please provide a CodeSandbox (https://mui.com/r/issue-template), a link to a repository on GitHub, or provide a minimal code example that reproduces the problem.
Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve
Hi,
It is the official stepper example from the site: https://mui.com/material-ui/react-stepper/ https://codesandbox.io/s/denqrr?file=/demo.tsx If you click on the "Next" button, it should be changed to "Finish" at the 3rd step according to the source code, but it remains "Next"
@adamiku I can't reproduce this in CSB 🤔:
https://user-images.githubusercontent.com/4997971/232994664-58277eff-a0b6-45ba-9dd5-bcd1b073423f.mov
Hmm interesting, i can reproduce it in codesandbox and even on localhost:
I am on a MAC, OS 13.3.1, in Chrome.
Looks like in Safari it works fine, pretty weird:
Hi,
I have tried to use the example Stepper Component and realize that the value of the Button is not updated at the last step:
https://github.com/mui/material-ui/blob/05127cf65b4250f836897428cd15829669ab8d6c/docs/data/material/components/steppers/HorizontalLinearStepper.tsx#L109
I have tried other components like Box and Typography but they work as expected (update the value to the latest state). Tried to duplicate the Button Component but references to the same state value and it works only if the other Button is clicked. Can you please check, looks like the Button component misses the latest state update if it was initiated from its own onClick.
Thanks