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

Set nav states according to startAtStep #17

Merged
merged 6 commits into from
Mar 1, 2017

Conversation

avivr
Copy link
Contributor

@avivr avivr commented Feb 20, 2017

Fixing a bug where navStates are not aligned when using 'startAtStep' prop.
The fix cause the steps to show correct 'done'/'in-progress'/'todo' styles.

- Extract buttns state calculation to function and initialize state from that function in constrctor and when moving between steps.
@avivr
Copy link
Contributor Author

avivr commented Feb 20, 2017

Also added fix to set the buttons state according to the startAtStep

@darshan-raj
Copy link

Will this solve the issue where the "Previous" button is not visible when the startAtStep is greater than 0?

@avivr
Copy link
Contributor Author

avivr commented Mar 1, 2017

@darshan-raj yes, it solves this issue as well.

@newbreedofgeek newbreedofgeek merged commit b7514a7 into newbreedofgeek:master Mar 1, 2017
@newbreedofgeek
Copy link
Owner

@avivr thanks very much. It's been tested and merged. @darshan-raj yes this PR fixed it.

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

Successfully merging this pull request may close these issues.

None yet

3 participants