@rjsf/core 5.22.4 → 5.23.1
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 -5
- package/dist/index.esm.js +3 -5
- package/dist/index.esm.js.map +2 -2
- package/dist/index.js +3 -5
- package/dist/index.js.map +2 -2
- package/lib/components/fields/NumberField.js +2 -2
- package/lib/components/fields/NumberField.js.map +1 -1
- package/lib/components/fields/SchemaField.js +1 -1
- package/lib/components/fields/SchemaField.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/src/components/fields/NumberField.tsx +3 -3
- package/src/components/fields/SchemaField.tsx +1 -3
|
@@ -151,9 +151,7 @@ function SchemaFieldRender<T = any, S extends StrictRJSFSchema = RJSFSchema, F e
|
|
|
151
151
|
|
|
152
152
|
const FieldComponent = getFieldComponent<T, S, F>(schema, uiOptions, idSchema, registry);
|
|
153
153
|
const disabled = Boolean(uiOptions.disabled ?? props.disabled);
|
|
154
|
-
const readonly = Boolean(
|
|
155
|
-
uiOptions.readonly ?? (props.readonly || props.schema.const || props.schema.readOnly || schema.readOnly)
|
|
156
|
-
);
|
|
154
|
+
const readonly = Boolean(uiOptions.readonly ?? (props.readonly || props.schema.readOnly || schema.readOnly));
|
|
157
155
|
const uiSchemaHideError = uiOptions.hideError;
|
|
158
156
|
// Set hideError to the value provided in the uiSchema, otherwise stick with the prop to propagate to children
|
|
159
157
|
const hideError = uiSchemaHideError === undefined ? props.hideError : Boolean(uiSchemaHideError);
|