diff --git a/src/js/form-builder.js b/src/js/form-builder.js index 86d8bd6e3..84e0a9a11 100644 --- a/src/js/form-builder.js +++ b/src/js/form-builder.js @@ -652,7 +652,7 @@ function FormBuilder(opts, element, $) { ['array', ({ options }) => !!options], ['boolean', ({ type }) => type === 'checkbox'], // automatic bool if checkbox [typeof attrData.value, () => true], // string, number, - ].find(typeCondition => typeCondition[1](attrData))[0] || 'string' + ].find(typeCondition => typeCondition[1](attrData))[0] ) }