mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-31 01:35:15 +02:00
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') {
|
if(field === 'autocomplete') {
|
||||||
props.values = value;
|
props.values = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
props.value = value;
|
if(field === 'checkbox') {
|
||||||
|
props.value = !!value;
|
||||||
|
} else {
|
||||||
|
props.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
return props;
|
return props;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user