@flowgram.ai/form 0.3.3 → 0.3.5

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/dist/esm/index.js CHANGED
@@ -1223,6 +1223,7 @@ var FormModel = class {
1223
1223
  createFormModelState()
1224
1224
  );
1225
1225
  this._initialized = false;
1226
+ this.validateDisabled = false;
1226
1227
  }
1227
1228
  set fieldMap(map) {
1228
1229
  this._fieldMap = map;
@@ -1364,6 +1365,7 @@ var FormModel = class {
1364
1365
  this.setValueIn(name, void 0);
1365
1366
  }
1366
1367
  async validateIn(name) {
1368
+ if (this.validateDisabled) return [];
1367
1369
  const validateOptions = this.getValidateOptions();
1368
1370
  if (!validateOptions) {
1369
1371
  return;
@@ -1390,6 +1392,7 @@ var FormModel = class {
1390
1392
  return validate;
1391
1393
  }
1392
1394
  async validate() {
1395
+ if (this.validateDisabled) return [];
1393
1396
  const validateOptions = this.getValidateOptions();
1394
1397
  if (!validateOptions) {
1395
1398
  return [];