react-albus icon indicating copy to clipboard operation
react-albus copied to clipboard

Initiate specific step on load

Open Anandks1993 opened this issue 5 years ago • 7 comments

I want to start wizard from specific step. On mount step comes with id as null. Please help me to achieve this.

Eg: Consider wizard is having 3 steps and I want to start from 2nd step on mount, after that the flow should be normal.

Anandks1993 avatar Jan 03 '20 16:01 Anandks1993

Does the skip step example illustrate what you need? http://americanexpress.io/react-albus/

jsmartfo avatar Jan 03 '20 16:01 jsmartfo

Yeah, but on mount I am getting step with id as null and steps with empty array. I want to skip the first step.

Anandks1993 avatar Jan 03 '20 17:01 Anandks1993

Hi @Anandks1993 see here: https://github.com/americanexpress/react-albus/blob/master/tests/components/Wizard.spec.jsx#L125

micabe avatar Mar 20 '20 11:03 micabe

This issue is stale because it has been open 30 days with no activity.

github-actions[bot] avatar Apr 20 '20 00:04 github-actions[bot]

Stumbled across the same issue. My assumption was, that i can just pass step: { id: 'theStepIWantToStartFrom'} via context.wizard

herrmannplatz avatar Sep 30 '20 10:09 herrmannplatz

This issue is stale because it has been open 30 days with no activity.

github-actions[bot] avatar Nov 05 '20 00:11 github-actions[bot]

This issue is stale because it has been open 30 days with no activity.

github-actions[bot] avatar Dec 06 '20 00:12 github-actions[bot]