Skip to content

Commit c15e26b

Browse files
authored
Fix: Custom schema field are not respecting readOnly property (#2092)
1 parent c7bdbe0 commit c15e26b

File tree

1 file changed

+1
-1
lines changed
  • geonode_mapstore_client/client/js/plugins/MetadataEditor/components/_fields

1 file changed

+1
-1
lines changed

geonode_mapstore_client/client/js/plugins/MetadataEditor/components/_fields/SchemaField.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const SchemaField = (props) => {
116116
valueKey,
117117
helpTitleIcon: true,
118118
description: helpText ?? description ?? schema.description, // Help text is preferred over description and displayed as a tooltip
119-
disabled: disabled || props?.readonly,
119+
disabled: disabled || props?.readonly || schema?.readOnly,
120120
style,
121121
required,
122122
onChange: (selected) => {

0 commit comments

Comments
 (0)