Skip to content

Commit

Permalink
Merge pull request #1487 from Shinbar/699
Browse files Browse the repository at this point in the history
Fix for #699
  • Loading branch information
kevinchappell authored Dec 8, 2023
2 parents cee1d8b + 0b64d37 commit ad01ca9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/js/form-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,8 @@ function FormBuilder(opts, element, $) {
if (attribute === 'label' && !opts.disableHTMLLabels) {
inputConfig.contenteditable = true
attributefield += m('div', attrVal, inputConfig).outerHTML
} else if (values.type === 'textarea' && attribute === 'value') {
attributefield += m('textarea', attrVal, inputConfig).outerHTML
} else {
inputConfig.value = attrVal
inputConfig.type = 'text'
Expand Down

0 comments on commit ad01ca9

Please sign in to comment.