@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/core.umd.js +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +2 -2
- package/lib/components/Form.js +2 -2
- package/lib/components/Form.js.map +1 -1
- package/lib/components/widgets/FileWidget.js +1 -1
- package/lib/components/widgets/FileWidget.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/src/components/Form.tsx +2 -2
- package/src/components/widgets/FileWidget.tsx +1 -1
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
|
|
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 (
|
|
3642
|
+
if (retrievedSchema === void 0) {
|
|
3643
3643
|
errorSchema = schemaValidation.errorSchema;
|
|
3644
3644
|
} else {
|
|
3645
3645
|
errorSchema = (0, import_utils39.mergeObjects)(
|