@rjsf/core 5.22.0 → 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/index.js CHANGED
@@ -2898,7 +2898,7 @@ function FileWidget(props) {
2898
2898
  processFiles(event.target.files).then((filesInfoEvent) => {
2899
2899
  const newValue = filesInfoEvent.map((fileInfo) => fileInfo.dataURL);
2900
2900
  if (multiple) {
2901
- onChange(value.concat(newValue[0]));
2901
+ onChange(value.concat(newValue));
2902
2902
  } else {
2903
2903
  onChange(newValue[0]);
2904
2904
  }
@@ -3639,7 +3639,7 @@ var Form = class extends import_react17.Component {
3639
3639
  if (mustValidate) {
3640
3640
  const schemaValidation = this.validate(formData, schema, schemaUtils, _retrievedSchema);
3641
3641
  errors = schemaValidation.errors;
3642
- if (isSchemaChanged) {
3642
+ if (retrievedSchema === void 0) {
3643
3643
  errorSchema = schemaValidation.errorSchema;
3644
3644
  } else {
3645
3645
  errorSchema = (0, import_utils39.mergeObjects)(