CodeBeamOrg / CodeBeam.MudBlazor.Extensions

Useful third party extension components for MudBlazor, from the contributors.
https://mudextensions.codebeam.org/
MIT License
348 stars 60 forks source link

MudStepper "ProgressValue" not updating when adding/removing steps #386

Closed SKSniperSK closed 2 weeks ago

SKSniperSK commented 2 weeks ago

Hi,

when you have already passed the first step and then are dynamically adding/showing or removing/hiding a (new) step, the according progress indicator bar is not being updated. This is because the (internal) value "ProgressValue" is only re-calculated once the (also internal) property "ActiveIndex" gets changed, which is not the case with AddStep/RemoveStep.

Example:

Solution: ProgressValue has to be re-calculated every time the number of steps changes (AddStep/RemoveStep) Perhaps it would also be a good idea to have some accessible way to trigger an update, either by making ProgressValue itself accessible or adding an accessible update method.

Thanks!

mckaragoz commented 2 weeks ago

Fixed and will come with next release. Adding or removing steps automatically updates ProgressValue. You can also call ForceRender to update ProgressValue manually too.