You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the step is not enabled, it will still register it as the form.currentStepName and mess with rendering of the steps.
I think it could also be nice to have some safety check if 'initialStepName' is a disabled step.
On a similar note, I think that the computation for the value isFirstStep and isLastStep should be on enabled steps and not all steps:
Describe the bug
When loading a multi step form where the 1st FormizStep is disabled, no step is rendered.
Codesandbox
See codesandbox
To Reproduce
Expected behavior
This step should not be rendered, but the following one in order should
Screenshots
Additional context
The issue comes from the
registerStep
action in the store:If the step is not enabled, it will still register it as the
form.currentStepName
and mess with rendering of the steps.I think it could also be nice to have some safety check if 'initialStepName' is a disabled step.
On a similar note, I think that the computation for the value
isFirstStep
andisLastStep
should be on enabled steps and not all steps:The text was updated successfully, but these errors were encountered: