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

Incorrect step indicator if "initialStepState" is provided #250

Open
samy-mssi opened this issue Feb 2, 2024 · 2 comments
Open

Incorrect step indicator if "initialStepState" is provided #250

samy-mssi opened this issue Feb 2, 2024 · 2 comments

Comments

@samy-mssi
Copy link

Hi,

Just noticed this issue, when I provide the prop "initialStepState". Seems like #171 (that was solved)

Got the issue on version 4.6.1
sandbox link : https://codesandbox.io/p/sandbox/lucid-panna-43xql6

screenshot 1
image
screenshot 2
image
(back button doesn't work, but I can access to "match columns" step by hitting the "3" button in the Stepper, after this, everything is fine)

@agnar-nomad
Copy link

+1
I also see this issue, however the variation of mine is exactly as in #171 .

@agnar-nomad
Copy link

agnar-nomad commented Feb 13, 2024

I am not sure if this is appropriate but it looks like an issue might be here:
utils/steps.ts > line 25 > return Math.min(0, steps.indexOf(step)) seems to work correctly when changed to return Math.max(0, steps.indexOf(step))
With respect to the reporter's issue and mine as well.

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

No branches or pull requests

2 participants