Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support zero-indexed steps #10

Open
aloukissas opened this issue Nov 27, 2018 · 4 comments
Open

Support zero-indexed steps #10

aloukissas opened this issue Nov 27, 2018 · 4 comments

Comments

@aloukissas
Copy link

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.

@jcmcneal
Copy link
Owner

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?

@aloukissas
Copy link
Author

Exactly.

@jcmcneal
Copy link
Owner

jcmcneal commented Apr 9, 2019

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.

@daviddavid
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants