Skip to content

Commit 3208446

Browse files
authored
Update formGenerator.vue
1 parent 20b8d9d commit 3208446

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/formGenerator.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ div.vue-form-generator(v-if='schema != null')
1414
button(v-for='btn in field.buttons', @click='buttonClickHandler(btn, field, $event)', :class='btn.classes') {{ btn.label }}
1515
.hint(v-if='field.hint') {{ fieldHint(field) }}
1616
.errors.help-block(v-if='fieldErrors(field).length > 0')
17-
span(v-for='(error, index) in fieldErrors(field)', track-by='index') {{ error }}
17+
span(v-for='(error, index) in fieldErrors(field)', v-if='!field.unscapeErrors', v-html="error", track-by='index')
18+
span(v-for='(error, index) in fieldErrors(field)', v-if='field.unscapeErrors', track-by='index') {{ error }}
1819

1920
template(v-for='group in groups')
2021
fieldset(:is='tag', :class='getFieldRowClasses(group)')

0 commit comments

Comments
 (0)