Skip to content

Commit

Permalink
Merge pull request #1338 from lucasnetau/fix-1337
Browse files Browse the repository at this point in the history
Fix numberAttributes with a valid value of 0
  • Loading branch information
kevinchappell authored Jul 2, 2023
2 parents 8188ff4 + 5ffbdd6 commit fedb19b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/form-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)

Expand Down

0 comments on commit fedb19b

Please sign in to comment.