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

Merge pull request #12 from 1on/master

Deep option on watch and getField method
This commit is contained in:
Kruglov Kirill 2020-10-28 16:21:23 +03:00 committed by GitHub
commit 02d68ad805
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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