Skip to content

Commit

Permalink
🐛 Fix: comment box does not close when replying
Browse files Browse the repository at this point in the history
  • Loading branch information
BeiyanYunyi committed Sep 25, 2023
1 parent 0484c7f commit e50f416
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/controllers/commentBoxState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ export const submitComment = () => {
} else setData((dat) => [makeDataReactive(resComment), ...dat]);
setContent('');
setPreviewText('');
if (replyId()) {
clearReplyState();
}
return null;
})
.catch((err: TypeError) => {
Expand Down

0 comments on commit e50f416

Please sign in to comment.