@rjsf/core 5.13.3 → 5.13.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/core.umd.js +3 -1
- package/dist/index.esm.js +3 -1
- package/dist/index.esm.js.map +2 -2
- package/dist/index.js +3 -1
- package/dist/index.js.map +2 -2
- package/lib/components/fields/BooleanField.js +2 -2
- package/lib/components/fields/BooleanField.js.map +1 -1
- package/lib/components/fields/SchemaField.js +2 -1
- package/lib/components/fields/SchemaField.js.map +1 -1
- package/package.json +6 -7
- package/src/components/fields/BooleanField.tsx +2 -0
- package/src/components/fields/SchemaField.tsx +2 -1
package/dist/core.umd.js
CHANGED
|
@@ -774,6 +774,7 @@
|
|
|
774
774
|
required,
|
|
775
775
|
disabled,
|
|
776
776
|
readonly,
|
|
777
|
+
hideError,
|
|
777
778
|
autofocus,
|
|
778
779
|
onChange,
|
|
779
780
|
onFocus,
|
|
@@ -846,6 +847,7 @@
|
|
|
846
847
|
required,
|
|
847
848
|
disabled,
|
|
848
849
|
readonly,
|
|
850
|
+
hideError,
|
|
849
851
|
registry,
|
|
850
852
|
formContext,
|
|
851
853
|
autofocus,
|
|
@@ -1449,7 +1451,7 @@
|
|
|
1449
1451
|
registry
|
|
1450
1452
|
}
|
|
1451
1453
|
);
|
|
1452
|
-
const errorsComponent = hideError || schema.anyOf || schema.oneOf ? void 0 : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1454
|
+
const errorsComponent = hideError || (schema.anyOf || schema.oneOf) && !schemaUtils.isSelect(schema) ? void 0 : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1453
1455
|
FieldErrorTemplate2,
|
|
1454
1456
|
{
|
|
1455
1457
|
errors: __errors,
|
package/dist/index.esm.js
CHANGED
|
@@ -822,6 +822,7 @@ function BooleanField(props) {
|
|
|
822
822
|
required,
|
|
823
823
|
disabled,
|
|
824
824
|
readonly,
|
|
825
|
+
hideError,
|
|
825
826
|
autofocus,
|
|
826
827
|
onChange,
|
|
827
828
|
onFocus,
|
|
@@ -894,6 +895,7 @@ function BooleanField(props) {
|
|
|
894
895
|
required,
|
|
895
896
|
disabled,
|
|
896
897
|
readonly,
|
|
898
|
+
hideError,
|
|
897
899
|
registry,
|
|
898
900
|
formContext,
|
|
899
901
|
autofocus,
|
|
@@ -1558,7 +1560,7 @@ function SchemaFieldRender(props) {
|
|
|
1558
1560
|
registry
|
|
1559
1561
|
}
|
|
1560
1562
|
);
|
|
1561
|
-
const errorsComponent = hideError || schema.anyOf || schema.oneOf ? void 0 : /* @__PURE__ */ jsx6(
|
|
1563
|
+
const errorsComponent = hideError || (schema.anyOf || schema.oneOf) && !schemaUtils.isSelect(schema) ? void 0 : /* @__PURE__ */ jsx6(
|
|
1562
1564
|
FieldErrorTemplate2,
|
|
1563
1565
|
{
|
|
1564
1566
|
errors: __errors,
|