diff --git a/src/components/forms/FormSearchField.js b/src/components/forms/FormSearchField.js index 2c8bfcc1f..78d3f79f6 100644 --- a/src/components/forms/FormSearchField.js +++ b/src/components/forms/FormSearchField.js @@ -18,6 +18,7 @@ const FormSearchField = ({ form: { setFieldValue, ...form }, valueKey, labelKey, + readOnly, ...props }) => { const [searchValue, setSearchValue] = React.useState(value); @@ -48,6 +49,7 @@ const FormSearchField = ({ return ( option[labelKey] === value[labelKey] } diff --git a/src/components/metadata/templates/index.js b/src/components/metadata/templates/index.js index 2a68a0010..34e8174de 100644 --- a/src/components/metadata/templates/index.js +++ b/src/components/metadata/templates/index.js @@ -241,7 +241,7 @@ const MetadataTemplateAttributeForm = (props) => { fieldProps = { ...fieldProps, searchAstroThesaurusTerms, - isDisabled: !writable, + readOnly: !writable, }; break; @@ -251,7 +251,7 @@ const MetadataTemplateAttributeForm = (props) => { ...fieldProps, searchOLSTerms, attribute, - isDisabled: !writable, + readOnly: !writable, }; break;