@rjsf/core 5.22.1 → 5.22.3
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 +6 -6
- package/src/components/Form.tsx +2 -2
- package/src/components/widgets/FileWidget.tsx +1 -1
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
|
|
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 (
|
|
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
|
|
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 (
|
|
3736
|
+
if (retrievedSchema === void 0) {
|
|
3737
3737
|
errorSchema = schemaValidation.errorSchema;
|
|
3738
3738
|
} else {
|
|
3739
3739
|
errorSchema = mergeObjects2(
|