1
0
mirror of synced 2024-11-24 22:36:02 +03:00

fix: added deep option for watch on mergedFieldErrors

This commit is contained in:
1on 2020-10-28 15:43:42 +03:00
parent f2d3fcd217
commit 9ae0e4e859

View File

@ -78,7 +78,7 @@ export default class FormularioForm extends Vue {
this.errorObserverRegistry.filter(o => o.type === 'form').observe(errors)
}
@Watch('mergedFieldErrors', { immediate: true })
@Watch('mergedFieldErrors', { deep: true, immediate: true })
onMergedFieldErrorsChanged (errors: Record<string, string[]>): void {
this.errorObserverRegistry.filter(o => o.type === 'input').observe(errors)
}