Fix comment edit without refresh (update editor state)

This commit is contained in:
ilya-bkv 2024-03-04 15:18:24 +03:00
parent bc1ea82127
commit 4196bb0f1e

View File

@ -169,7 +169,7 @@ export const Comment = (props: Props) => {
<Show when={editMode()} fallback={<div innerHTML={body()} />}>
<Suspense fallback={<p>{t('Loading')}</p>}>
<SimplifiedEditor
initialContent={props.comment.body}
initialContent={editedBody() || props.comment.body}
submitButtonText={t('Save')}
quoteEnabled={true}
imageEnabled={true}