Fixes bug that prevent validationLabel from being used in error messages
This commit is contained in:
parent
c9ad09392a
commit
a8a2be0820
@ -140,8 +140,8 @@ validation rules by using parenthesis after the rule name:
|
||||
validation="required|confirmed(confirmation_field)"
|
||||
```
|
||||
|
||||
The field label used in built in validation methods is the `validationLabel`
|
||||
attribute on your `formulate-element`. If no `validationLabel` is found then
|
||||
The field label used in built in validation methods is the `validation-label`
|
||||
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
|
||||
fall back to the field’s `name` attribute (which is required).
|
||||
|
||||
|
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -153,6 +153,10 @@ export default {
|
||||
showErrors: {
|
||||
type: [Object, Boolean],
|
||||
default: () => ({})
|
||||
},
|
||||
validationLabel: {
|
||||
type: [String, Boolean],
|
||||
default: false
|
||||
}
|
||||
},
|
||||
data () {
|
||||
|
Loading…
Reference in New Issue
Block a user