Skip to content

Commit

Permalink
fix: subtype is critical to defining the control, add subtype to the …
Browse files Browse the repository at this point in the history
…list of attributes that are hidden rather than removed when disabled via disabledAttrs
  • Loading branch information
lucasnetau committed Oct 19, 2023
1 parent b34c8bf commit 28208fa
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 @@ -574,7 +574,7 @@ function FormBuilder(opts, element, $) {
advFieldMap[numAttr] = type === 'number' ? () => numberAttribute(numAttr, values) : () => textAttribute(numAttr, values)
})

const noDisable = ['name', 'className']
const noDisable = ['name', 'className', 'subtype', ]

const typeUserAttrs = Object.assign({}, opts.typeUserAttrs['*'], opts.typeUserAttrs[type])

Expand Down

0 comments on commit 28208fa

Please sign in to comment.