Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion frontend/src/components/EditableText.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,15 @@ function EditableText({id, text, rubric, isPartOf, links, fragment, setFragment,
<textarea className="form-control" type="text" rows="5" autoFocus
value={editedText} onChange={handleChange} onBlur={handleBlur}
/>
<button
type="button"
className="btn btn-success btn-sm mt-1"
Comment thread
vanellefotso21-crypto marked this conversation as resolved.
Outdated
onMouseDown={handleBlur}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By firing up this event, handleBlur got invoked twice.
This generates a conflict when you edit and save several times in a row.

>
Save
</button>
</form>
);
}

export default EditableText;
export default EditableText;
Loading