|
|
@ -97,12 +97,14 @@ const defaultValueHandler = (field) => { |
|
|
|
return field.defaultValue; |
|
|
|
} else if (field.type === 'checkbox' || field.type === 'w-checkbox') { |
|
|
|
return false; |
|
|
|
} else if (field.type === 'option-group' || field.type === 'w-option-group') { |
|
|
|
} else if (field.type === 'option-group' || field.type === 'optionGroup' || field.type === 'w-option-group') { |
|
|
|
if (field.optionType === 'radio') { |
|
|
|
return undefined; |
|
|
|
} else { |
|
|
|
return []; |
|
|
|
} |
|
|
|
} else if (field.type === 'select' || (field.type === 'w-select' && field.multiple)) { |
|
|
|
return []; |
|
|
|
} |
|
|
|
return undefined; |
|
|
|
}; |
|
|
|