@rjsf/core 5.22.4 → 5.23.0

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 CHANGED
@@ -1428,9 +1428,7 @@
1428
1428
  );
1429
1429
  const FieldComponent = getFieldComponent(schema, uiOptions, idSchema, registry);
1430
1430
  const disabled = Boolean(uiOptions.disabled ?? props.disabled);
1431
- const readonly = Boolean(
1432
- uiOptions.readonly ?? (props.readonly || props.schema.const || props.schema.readOnly || schema.readOnly)
1433
- );
1431
+ const readonly = Boolean(uiOptions.readonly ?? (props.readonly || props.schema.readOnly || schema.readOnly));
1434
1432
  const uiSchemaHideError = uiOptions.hideError;
1435
1433
  const hideError = uiSchemaHideError === void 0 ? props.hideError : Boolean(uiSchemaHideError);
1436
1434
  const autofocus = Boolean(uiOptions.autofocus ?? props.autofocus);
package/dist/index.esm.js CHANGED
@@ -1541,9 +1541,7 @@ function SchemaFieldRender(props) {
1541
1541
  );
1542
1542
  const FieldComponent = getFieldComponent(schema, uiOptions, idSchema, registry);
1543
1543
  const disabled = Boolean(uiOptions.disabled ?? props.disabled);
1544
- const readonly = Boolean(
1545
- uiOptions.readonly ?? (props.readonly || props.schema.const || props.schema.readOnly || schema.readOnly)
1546
- );
1544
+ const readonly = Boolean(uiOptions.readonly ?? (props.readonly || props.schema.readOnly || schema.readOnly));
1547
1545
  const uiSchemaHideError = uiOptions.hideError;
1548
1546
  const hideError = uiSchemaHideError === void 0 ? props.hideError : Boolean(uiSchemaHideError);
1549
1547
  const autofocus = Boolean(uiOptions.autofocus ?? props.autofocus);