jcmcneal / react-step-wizard

A modern flexible step wizard component built for React.
MIT License
585 stars 128 forks source link

Not loading all the steps #62

Closed iwoork closed 4 years ago

iwoork commented 4 years ago

I've having issue where some of the steps are not loaded even thought they are inside the StepWizard component. Let's say I have 8 steps, it only shows the first 5. What could be the problem here?

This doesn't work:

{
   questionnaires.map((questionnaire) => (
     <Questionnaire question={questionnaire.title} options={questionnaire.options} callback={updateSymptom} />
    ))
}

This works:

<Questionnaire question={questionnaires[0].title} options={questionnaires[0].options} callback={updateSymptom} />
<Questionnaire question={questionnaires[1].title} options={questionnaires[1].options} callback={updateSymptom} />
<Questionnaire question={questionnaires[2].title} options={questionnaires[2].options} callback={updateSymptom} />
<Questionnaire question={questionnaires[3].title} options={questionnaires[3].options} callback={updateSymptom} />
inbaldoron commented 4 years ago

any news about this? I am having the same issue

AndrewSouthpaw commented 4 years ago

I used the solution proposed here. Annoying, but it works. 🤦