@formio/js 5.0.0-bb.dev.1 → 5.0.0-bb.dev.2

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.
package/lib/cjs/Form.js CHANGED
@@ -125,7 +125,9 @@ class Form extends Element_1.default {
125
125
  this.element.appendChild(this.loader);
126
126
  }
127
127
  else if (this.loader) {
128
- this.element.removeChild(this.loader);
128
+ if (this.element.contains(this.loader)) {
129
+ this.element.removeChild(this.loader);
130
+ }
129
131
  this.loader = null;
130
132
  }
131
133
  }
package/lib/mjs/Form.js CHANGED
@@ -97,7 +97,9 @@ export default class Form extends Element {
97
97
  this.element.appendChild(this.loader);
98
98
  }
99
99
  else if (this.loader) {
100
- this.element.removeChild(this.loader);
100
+ if (this.element.contains(this.loader)) {
101
+ this.element.removeChild(this.loader);
102
+ }
101
103
  this.loader = null;
102
104
  }
103
105
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0-bb.dev.1",
3
+ "version": "5.0.0-bb.dev.2",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",