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 a883ad4 commit 276d96fCopy full SHA for 276d96f
lib/client/autoform.js
@@ -4,7 +4,11 @@ AutoForm.addInputType("fileUpload", {
4
5
AutoForm._globalHooks.onSuccess.push(function (type) {
6
if (type === 'insert') {
7
- this.template.$('[data-reset-file]').click();
+ try {
8
+ if (this.template) {
9
+ this.template.$('[data-reset-file]').click();
10
+ }
11
+ } catch (e) {}
12
}
13
});
14
0 commit comments