@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/index.js
CHANGED
|
@@ -830,6 +830,7 @@ function BooleanField(props) {
|
|
|
830
830
|
required,
|
|
831
831
|
disabled,
|
|
832
832
|
readonly,
|
|
833
|
+
hideError,
|
|
833
834
|
autofocus,
|
|
834
835
|
onChange,
|
|
835
836
|
onFocus,
|
|
@@ -902,6 +903,7 @@ function BooleanField(props) {
|
|
|
902
903
|
required,
|
|
903
904
|
disabled,
|
|
904
905
|
readonly,
|
|
906
|
+
hideError,
|
|
905
907
|
registry,
|
|
906
908
|
formContext,
|
|
907
909
|
autofocus,
|
|
@@ -1537,7 +1539,7 @@ function SchemaFieldRender(props) {
|
|
|
1537
1539
|
registry
|
|
1538
1540
|
}
|
|
1539
1541
|
);
|
|
1540
|
-
const errorsComponent = hideError || schema.anyOf || schema.oneOf ? void 0 : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1542
|
+
const errorsComponent = hideError || (schema.anyOf || schema.oneOf) && !schemaUtils.isSelect(schema) ? void 0 : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1541
1543
|
FieldErrorTemplate2,
|
|
1542
1544
|
{
|
|
1543
1545
|
errors: __errors,
|