Skip to content

Commit e488733

Browse files
committed
Fix recursively mapping
1 parent bd09d33 commit e488733

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

form.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ export default class Form extends React.Component {
5757
renderChildren(children) {
5858
return React.Children.map(children, child => {
5959
if (!child || !child.props) return child;
60-
if (child.children) return this.renderChildren(children);
60+
if (child.props.children)
61+
return this.renderChildren(child.props.children);
6162

6263
let { values, errors } = this.state;
6364

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-validify",
3-
"version": "0.0.8",
3+
"version": "0.0.9",
44
"description": "Form validation made easy",
55
"main": "dist/form.js",
66
"directories": {

0 commit comments

Comments
 (0)