We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 823bb12 commit e7b46a2Copy full SHA for e7b46a2
lib/client/fileUpload.js
@@ -148,7 +148,7 @@ Template.afFileUpload.events({
148
const upload = template.collection.insert(opts, false);
149
let ctx;
150
try {
151
- ctx = AutoForm.getValidationContext(template.formId);
+ ctx = AutoForm.getValidationContext($(e.target).closest("form").attr('id'));
152
} catch (exception) {
153
// Fix: "TypeError: Cannot read property '_resolvedSchema' of undefined"
154
ctx = AutoForm.getValidationContext();
0 commit comments