react-step-wizard icon indicating copy to clipboard operation
react-step-wizard copied to clipboard

Support zero-indexed steps

Open aloukissas opened this issue 6 years ago • 4 comments

It would be great if the library (optionally) allowed for zero-indexed steps. For one, it creates confusion when using the optional nav prop that the nav implementation is an array (zero-indexed). Similar issues arise if the steps themselves are an array of components.

aloukissas avatar Nov 27 '18 01:11 aloukissas

I think this could be added. I assume you're probably working with an iterator like i and don't want to do i + 1?

jcmcneal avatar Nov 27 '18 20:11 jcmcneal

Exactly.

aloukissas avatar Nov 28 '18 17:11 aloukissas

Not sure if this is still a pressing matter, but I do plan to implement zero indexed steps as soon as I can. Sorry it's taking so long.

jcmcneal avatar Apr 09 '19 17:04 jcmcneal

I just started using the wizard, but it seems that SW.state.activeStep is zero-indexed, but the currentStep passed down in the props isn't? Is this intended by design or am I missing something?

daviddavid avatar May 24 '19 14:05 daviddavid