aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/fields
diff options
context:
space:
mode:
authorEmiliano Ciavatta2020-10-16 17:05:44 +0000
committerEmiliano Ciavatta2020-10-16 17:05:44 +0000
commit79b8b2fa3e8563c986da8baa3a761f2d4f0c6f47 (patch)
tree714ad5aed8698dfffbb472b3fa74909acb8cdead /frontend/src/components/fields
parentd429a344ef34bb9289616dc7ca11c161fabce5d7 (diff)
Minor improvements
Diffstat (limited to 'frontend/src/components/fields')
-rw-r--r--frontend/src/components/fields/InputField.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/components/fields/InputField.js b/frontend/src/components/fields/InputField.js
index 823989d..e2ea020 100644
--- a/frontend/src/components/fields/InputField.js
+++ b/frontend/src/components/fields/InputField.js
@@ -75,7 +75,7 @@ class InputField extends Component {
aria-describedby={this.id} onChange={handler} {...inputProps}
readOnly={this.props.readonly}/>
</div>
- {type !== "file" && value !== "" &&
+ {type !== "file" && value !== "" && !this.props.readonly &&
<div className="field-clear">
<span onClick={() => handler(null)}>del</span>
</div>