1
0
mirror of synced 2024-11-25 14:56:03 +03:00

Fixes bug that prevent validationLabel from being used in error messages

This commit is contained in:
Justin Schroeder 2018-02-02 13:38:05 -05:00
parent c9ad09392a
commit a8a2be0820
3 changed files with 7 additions and 3 deletions

View File

@ -140,8 +140,8 @@ validation rules by using parenthesis after the rule name:
validation="required|confirmed(confirmation_field)" validation="required|confirmed(confirmation_field)"
``` ```
The field label used in built in validation methods is the `validationLabel` The field label used in built in validation methods is the `validation-label`
attribute on your `formulate-element`. If no `validationLabel` is found then attribute on your `formulate-element`. If no `validation-label` is found then
the `label` attribute is used, and if no `label` attribute is found it will the `label` attribute is used, and if no `label` attribute is found it will
fall back to the fields `name` attribute (which is required). fall back to the fields `name` attribute (which is required).

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

@ -153,6 +153,10 @@ export default {
showErrors: { showErrors: {
type: [Object, Boolean], type: [Object, Boolean],
default: () => ({}) default: () => ({})
},
validationLabel: {
type: [String, Boolean],
default: false
} }
}, },
data () { data () {