Skip to content

Commit

Permalink
Fix initialValue check
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitryDushkin authored and Dmitry Dushkin committed Jan 14, 2017
1 parent adc0189 commit 38c7dd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/uniforms/src/connectField.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function connectField (component, {
return;
}

if (props.value === undefined && props.required) {
if (!props.value && props.required) {
props.onChange(props.initialValue);
}
}
Expand Down

0 comments on commit 38c7dd5

Please sign in to comment.