jcmcneal / react-step-wizard

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

Failure if there is only one child of the stepwizard #65

Closed BFUculsion closed 4 years ago

BFUculsion commented 4 years ago

If you have only one child component in the step wizard, you get this error × TypeError: o.props.children.filter is not a function a.getSteps node_modules/react-step-wizard/dist/react-step-wizard.min.js:1

nmoinvaz commented 4 years ago

I had this same error and it took me quite some time to figure out what was happening. For some reason I thought it was missing Array.filter polyfill.

https://stackoverflow.com/questions/32672966/react-props-children-is-not-array

nmoinvaz commented 4 years ago

Duplicates #63.