@formio/js 5.1.0-dev.6077.da375cd → 5.1.0-dev.6079.1fdf7d9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,9 +29,9 @@ class ListComponent extends Field_1.default {
29
29
  get dataReady() {
30
30
  // If the root submission has been set, and we are still not attached, then assume
31
31
  // that our data is ready.
32
- if (this.root &&
32
+ if ((this.root &&
33
33
  this.root.submissionSet &&
34
- !this.attached) {
34
+ !this.attached) || !this.visible) {
35
35
  return Promise.resolve();
36
36
  }
37
37
  return this.itemsLoaded;
@@ -49,9 +49,11 @@ class FormioUploadAdapter {
49
49
  }
50
50
  }
51
51
  }
52
- const getFormioUploadAdapterPlugin = (fileService, component) => (editor) => {
53
- editor.plugins.get('FileRepository').createUploadAdapter = (loader) => {
54
- return new FormioUploadAdapter(loader, fileService, component);
52
+ const getFormioUploadAdapterPlugin = (fileService, component) => {
53
+ return function (editor) {
54
+ editor.plugins.get('FileRepository').createUploadAdapter = (loader) => {
55
+ return new FormioUploadAdapter(loader, fileService, component);
56
+ };
55
57
  };
56
58
  };
57
59
  exports.getFormioUploadAdapterPlugin = getFormioUploadAdapterPlugin;
@@ -24,9 +24,9 @@ export default class ListComponent extends Field {
24
24
  get dataReady() {
25
25
  // If the root submission has been set, and we are still not attached, then assume
26
26
  // that our data is ready.
27
- if (this.root &&
27
+ if ((this.root &&
28
28
  this.root.submissionSet &&
29
- !this.attached) {
29
+ !this.attached) || !this.visible) {
30
30
  return Promise.resolve();
31
31
  }
32
32
  return this.itemsLoaded;
@@ -46,9 +46,11 @@ class FormioUploadAdapter {
46
46
  }
47
47
  }
48
48
  }
49
- const getFormioUploadAdapterPlugin = (fileService, component) => (editor) => {
50
- editor.plugins.get('FileRepository').createUploadAdapter = (loader) => {
51
- return new FormioUploadAdapter(loader, fileService, component);
49
+ const getFormioUploadAdapterPlugin = (fileService, component) => {
50
+ return function (editor) {
51
+ editor.plugins.get('FileRepository').createUploadAdapter = (loader) => {
52
+ return new FormioUploadAdapter(loader, fileService, component);
53
+ };
52
54
  };
53
55
  };
54
56
  export { getFormioUploadAdapterPlugin };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.1.0-dev.6077.da375cd",
3
+ "version": "5.1.0-dev.6079.1fdf7d9",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {