react-spreadsheet-import
react-spreadsheet-import copied to clipboard
Incorrect step indicator if "initialStepState" is provided
Hi,
Just noticed this issue, when I provide the prop "initialStepState". Seems like https://github.com/UgnisSoftware/react-spreadsheet-import/issues/171 (that was solved)
Got the issue on version 4.6.1 sandbox link : https://codesandbox.io/p/sandbox/lucid-panna-43xql6
screenshot 1
screenshot 2
(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)
+1 I also see this issue, however the variation of mine is exactly as in #171 .
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.