1
0
mirror of synced 2024-11-25 06:46:02 +03:00

feat!: FormularioField - individual field errors are always presumed as a string array

This commit is contained in:
Zaytsev Kirill 2021-05-25 13:59:01 +03:00
parent 7f864c7951
commit 9a344bf8b5
2 changed files with 2 additions and 2 deletions

View File

@ -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
}
}

View File

@ -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">