Closed gilizeevi closed 4 years ago
I notice the same behavior. Has anybody figured out how to solve this? The onError hook of the form has all validation errors in validationContext._validationErrors but just doesn't display it for a nested schema
I get this too. Occurs when using either quickForm
and autoForm
.
Linking to your work-around that solves this problem for now.
Duplicate of https://github.com/aldeed/simple-schema-js/issues/359, which has a PR in review / discussion
Hello.
I'm currently facing an issue with reactive validation errors not appearing on nested subschema fields. When adding AutoForm.debug, the errors are logged but does not show on the form.
Example: JS
HTML
{{> quickForm collection=getCollection id="insertTaskForm" type="insert"}}
ORIn the quickform example, when subtask fields are empty, a validation error of 'subtasks is required' does appear, but not for subtasks fields.
Reactive validation errors of nested subscehma did work with previous versions, before Tracker was added. Any idea what i'm doing wrong and how to solve it?