This PR fixes a bug introduced by https://github.com/jellypbc/poster/pull/417 where users are unable to reply to comments. This is a quick fix. For a full solution, we need to pass the accurate highlightedText from the CommentForm component into handleReplySubmit or generate the highlightedText string in comments.js.
I opted not to do a full fix because comments is not our priority right now. My estimate for a full fix is 1 hour to 1/2 day.
Fixes https://github.com/jellypbc/poster/issues/423
This PR fixes a bug introduced by https://github.com/jellypbc/poster/pull/417 where users are unable to reply to comments. This is a quick fix. For a full solution, we need to pass the accurate
highlightedText
from the CommentForm component intohandleReplySubmit
or generate the highlightedText string incomments.js
.I opted not to do a full fix because comments is not our priority right now. My estimate for a full fix is 1 hour to 1/2 day.
After:
Before: