@rjsf/core 5.22.1 → 5.22.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/dist/core.umd.js CHANGED
@@ -2686,7 +2686,7 @@
2686
2686
  processFiles(event.target.files).then((filesInfoEvent) => {
2687
2687
  const newValue = filesInfoEvent.map((fileInfo) => fileInfo.dataURL);
2688
2688
  if (multiple) {
2689
- onChange(value.concat(newValue[0]));
2689
+ onChange(value.concat(newValue));
2690
2690
  } else {
2691
2691
  onChange(newValue[0]);
2692
2692
  }
@@ -3382,7 +3382,7 @@
3382
3382
  if (mustValidate) {
3383
3383
  const schemaValidation = this.validate(formData, schema, schemaUtils, _retrievedSchema);
3384
3384
  errors = schemaValidation.errors;
3385
- if (isSchemaChanged) {
3385
+ if (retrievedSchema === void 0) {
3386
3386
  errorSchema = schemaValidation.errorSchema;
3387
3387
  } else {
3388
3388
  errorSchema = utils.mergeObjects(
package/dist/index.esm.js CHANGED
@@ -2983,7 +2983,7 @@ function FileWidget(props) {
2983
2983
  processFiles(event.target.files).then((filesInfoEvent) => {
2984
2984
  const newValue = filesInfoEvent.map((fileInfo) => fileInfo.dataURL);
2985
2985
  if (multiple) {
2986
- onChange(value.concat(newValue[0]));
2986
+ onChange(value.concat(newValue));
2987
2987
  } else {
2988
2988
  onChange(newValue[0]);
2989
2989
  }
@@ -3733,7 +3733,7 @@ var Form = class extends Component5 {
3733
3733
  if (mustValidate) {
3734
3734
  const schemaValidation = this.validate(formData, schema, schemaUtils, _retrievedSchema);
3735
3735
  errors = schemaValidation.errors;
3736
- if (isSchemaChanged) {
3736
+ if (retrievedSchema === void 0) {
3737
3737
  errorSchema = schemaValidation.errorSchema;
3738
3738
  } else {
3739
3739
  errorSchema = mergeObjects2(