Skip to content

Commit cacd5ac

Browse files
Samellaperesothmaneuttvanellefotso21-crypto
committed
FIX: Text edition should have a clear exit option (closes #371).
Co-authored-by: othmaneutt <othmane.houasli@utt.fr> Co-authored-by: vanellefotso21-crypto <vanellefotso21@gmail.com>
1 parent 7f62ca6 commit cacd5ac

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

frontend/src/components/EditableText.jsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,15 @@ function EditableText({id, text, rubric, isPartOf, links, fragment, setFragment,
126126
/>
127127
<button
128128
type="button"
129-
className="btn btn-success btn-sm mt-1"
130-
onMouseDown={handleBlur}
129+
className="btn btn-secondary btn-sm mt-1"
130+
onMouseDown={(e) => e.preventDefault()}
131+
onClick={handleBlur}
132+
131133
>
132134
Save
133135
</button>
134136
</form>
135137
);
136138
}
137139

138-
export default EditableText;
140+
export default EditableText;

0 commit comments

Comments
 (0)