fix warning in checbox in form field.
This commit is contained in:
parent
76b7e2c6e7
commit
bb9873be4f
|
@ -195,7 +195,11 @@ class FormField extends React.Component {
|
|||
props.values = value;
|
||||
}
|
||||
|
||||
props.value = value;
|
||||
if(field === 'checkbox') {
|
||||
props.value = !!value;
|
||||
} else {
|
||||
props.value = value;
|
||||
}
|
||||
|
||||
return props;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue