Skip to content

Button Component value is not updated in case of conditional statement #36912

Open
@adamiku

Description

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:

{activeStep === steps.length - 1 ? 'Finish' : 'Next'}

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

Metadata

Assignees

Labels

component: buttonThis is the name of the generic UI component, not the React module!

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions