Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
712aa8db
Commit
712aa8db
authored
Jul 05, 2016
by
Ray Schamp
Committed by
GitHub
Jul 05, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #672 from rschamp/bugfix/child-props
Don't error on null children
parents
c50ac03a
b7c46f48
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/components/forms/form.jsx
src/components/forms/form.jsx
+1
-0
No files found.
src/components/forms/form.jsx
View file @
712aa8db
...
...
@@ -32,6 +32,7 @@ var Form = React.createClass({
return
(
<
Formsy
.
Form
{
...
this
.
props
}
className=
{
classes
}
ref=
"formsy"
onChange=
{
this
.
onChange
}
>
{
React
.
Children
.
map
(
this
.
props
.
children
,
function
(
child
)
{
if
(
!
child
)
return
child
;
if
(
child
.
props
.
name
===
'
all
'
)
{
return
React
.
cloneElement
(
child
,
{
value
:
this
.
state
.
allValues
});
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment