diff --git a/src/js/form-builder.js b/src/js/form-builder.js index df7a0c044..6e3580ef6 100644 --- a/src/js/form-builder.js +++ b/src/js/form-builder.js @@ -883,7 +883,7 @@ function FormBuilder(opts, element, $) { */ const numberAttribute = (attribute, values) => { const { class: classname, className, value, ...attrs } = values - const attrVal = attrs[attribute] || value + const attrVal = (isNaN(attrs[attribute])) ? value : attrs[attribute] const attrLabel = mi18n.get(attribute) || attribute const placeholder = mi18n.get(`placeholder.${attribute}`)