aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/fields/InputField.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/components/fields/InputField.js')
-rw-r--r--frontend/src/components/fields/InputField.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend/src/components/fields/InputField.js b/frontend/src/components/fields/InputField.js
index b790891..84c981b 100644
--- a/frontend/src/components/fields/InputField.js
+++ b/frontend/src/components/fields/InputField.js
@@ -55,7 +55,8 @@ class InputField extends Component {
{ type === "file" && <label for={this.id} className={"file-label"}>
{value.name || this.props.placeholder}</label> }
<input type={type} placeholder={this.props.placeholder} id={this.id}
- aria-describedby={this.id} onChange={handler} {...inputProps} />
+ aria-describedby={this.id} onChange={handler} {...inputProps}
+ readOnly={this.props.readonly} />
</div>
{ type !== "file" && value !== "" &&
<div className="field-clear">