Skip to content

Commit

Permalink
Merge pull request #1398 from lucasnetau/numberFieldValue
Browse files Browse the repository at this point in the history
Fix incorrectly assigning a value to numberAttributes
  • Loading branch information
kevinchappell authored Sep 12, 2023
2 parents 514f4b1 + 28b1a6f commit e691833
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/form-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)

Expand Down

0 comments on commit e691833

Please sign in to comment.