adamdawkins / react-mdl-stepper

React Component for Material Design Light Stepper.
https://adamdawkins.github.io/react-mdl-stepper/
MIT License
4 stars 3 forks source link

children props cannot be both StepActions and StepContent #5

Open okwolf opened 8 years ago

okwolf commented 8 years ago

This line has a check that throws an error if any child within children is not of StepActions type OR the child is not of StepContent type.

It would make more sense to me if this check only threw an error if any of the children were not of StepActions type AND that that child was also not of StepContent type. Did you mean to write this instead?

if ((child.type !== StepActions) && (child.type !== StepContent)) {