Merge pull request #12 from 1on/master
Deep option on watch and getField method
This commit is contained in:
commit
02d68ad805
@ -78,7 +78,7 @@ export default class FormularioForm extends Vue {
|
|||||||
this.errorObserverRegistry.filter(o => o.type === 'form').observe(errors)
|
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 {
|
onMergedFieldErrorsChanged (errors: Record<string, string[]>): void {
|
||||||
this.errorObserverRegistry.filter(o => o.type === 'input').observe(errors)
|
this.errorObserverRegistry.filter(o => o.type === 'input').observe(errors)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user