Skip to content

Commit b12577a

Browse files
committed
IMPROVEMENT: Text edition should have a clear exit option (see #371)
1 parent b19f94d commit b12577a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

frontend/src/components/EditableText.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,11 @@ function EditableText({id, text, rubric, isPartOf, links, fragment, setFragment,
124124
<textarea className="form-control" type="text" rows="5" autoFocus
125125
value={editedText} onChange={handleChange} onBlur={handleBlur}
126126
/>
127+
<button type="button" onMouseDown={handleBlur}>
128+
Save
129+
</button>
127130
</form>
128131
);
129132
}
130133

131-
export default EditableText;
134+
export default EditableText;

0 commit comments

Comments
 (0)