Skip to content

Commit

Permalink
fix: store result of trimmed values config to the sanitizedField
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasnetau committed Feb 8, 2024
1 parent 1e64c69 commit 1504849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/form-render.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class FormRender {
: field.className || field.class || null
delete sanitizedField.class
if (field.values) {
field.values = field.values.map(option => utils.trimObj(option))
sanitizedField.values = field.values.map(option => utils.trimObj(option))
}
sanitizedField = utils.trimObj(sanitizedField)
if (Array.isArray(field.userData) && field.userData.length === 0) {
Expand Down

0 comments on commit 1504849

Please sign in to comment.