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