diff --git a/src/views/board/BoardView.vue b/src/views/board/BoardView.vue index 4eed1f8..707ac3a 100644 --- a/src/views/board/BoardView.vue +++ b/src/views/board/BoardView.vue @@ -658,9 +658,7 @@ // 수정 if (lastCommentClickedButton.value === 'edit') { if (targetComment) { - // 다른 모든 댓글의 수정 창 닫기 - closeAllEditTextareas(); - + closeAllEditTextareas(); // 다른 모든 댓글의 수정 창 닫기 targetComment.isEditTextarea = true; passwordCommentAlert.value = ''; currentPasswordCommentId.value = null; @@ -755,6 +753,7 @@ if (targetComment) { targetComment.content = editedContent; // 댓글 내용 업데이트 targetComment.isEditTextarea = false; // 수정 모드 닫기 + togglePassword('close'); } else { toastStore.onToast('수정할 댓글을 찾을 수 없습니다.', 'e'); }