fix: render comments inside contenteditable (#79)

This commit is contained in:
Henry
2025-06-13 09:23:55 +01:00
committed by GitHub
parent d6b0b5cd80
commit f0e3c4c3e2

View File

@@ -132,7 +132,11 @@ const Comment = ({
)}
</div>
{!isEditing ? (
<p className="mt-2 text-sm">{comment}</p>
<ContentEditable
html={comment ?? ""}
disabled={true}
className="mt-2 text-sm"
/>
) : (
<form onSubmit={handleSubmit(onSubmit)}>
<ContentEditable