diff --git a/src/views/board/BoardView.vue b/src/views/board/BoardView.vue index 3eca89b..08411aa 100644 --- a/src/views/board/BoardView.vue +++ b/src/views/board/BoardView.vue @@ -476,6 +476,7 @@ const editComment = (comment) => { targetComment.isEditTextarea = !targetComment.isEditTextarea; lastCommentClickedButton.value = "edit"; } else if (isAnonymous) { + if (targetComment.isEditTextarea) return; toggleCommentPassword(comment, "edit"); } else { alert("수정이 불가능합니다"); @@ -586,10 +587,10 @@ const submitCommentPassword = async (comment, password) => { if (lastCommentClickedButton.value === "edit") { if (targetComment) { - currentPasswordCommentId.value = false; //여기서 input 창 닫혀야함 targetComment.isEditTextarea = true; passwordCommentAlert.value = ""; + currentPasswordCommentId.value = null; } else { alert("수정 취소를 실패했습니다.");