@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.
@@ -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);