feat!: FormularioField - individual field errors are always presumed as a string array
This commit is contained in:
parent
7f864c7951
commit
9a344bf8b5
@ -243,7 +243,7 @@ export default class FormularioField extends Vue {
|
||||
*/
|
||||
public setErrors (errors: string[]): void {
|
||||
if (!this.errorsDisabled) {
|
||||
this.localErrors = arrayify(errors) as string[]
|
||||
this.localErrors = errors
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -83,7 +83,7 @@ describe('FormularioFieldGroup', () => {
|
||||
|
||||
test('errors are set for grouped fields', async () => {
|
||||
const wrapper = mount(FormularioForm, {
|
||||
propsData: { fieldsErrors: { 'address.street': 'Test error' } },
|
||||
propsData: { fieldsErrors: { 'address.street': ['Test error'] } },
|
||||
slots: {
|
||||
default: `
|
||||
<FormularioFieldGroup name="address">
|
||||
|
Loading…
Reference in New Issue
Block a user