diff --git a/src/js/form-builder.js b/src/js/form-builder.js index b6fd8fd62..9a5524612 100644 --- a/src/js/form-builder.js +++ b/src/js/form-builder.js @@ -883,8 +883,8 @@ function FormBuilder(opts, element, $) { * @return {String} markup for number attribute */ const numberAttribute = (attribute, values) => { - const { class: classname, className, value, ...attrs } = values - const attrVal = (isNaN(attrs[attribute])) ? value : attrs[attribute] + const { class: classname, className, ...attrs } = values + const attrVal = (isNaN(attrs[attribute])) ? undefined : attrs[attribute] const attrLabel = mi18n.get(attribute) || attribute const placeholder = mi18n.get(`placeholder.${attribute}`)