댓글 수정시 게시글 수정 비밀번호 입력창 노출 안되게 수정

This commit is contained in:
nevermoregb 2025-03-17 11:24:36 +09:00
parent 58100f848c
commit 8c9c7f147c

View File

@ -658,9 +658,7 @@
// //
if (lastCommentClickedButton.value === 'edit') { if (lastCommentClickedButton.value === 'edit') {
if (targetComment) { if (targetComment) {
// closeAllEditTextareas(); //
closeAllEditTextareas();
targetComment.isEditTextarea = true; targetComment.isEditTextarea = true;
passwordCommentAlert.value = ''; passwordCommentAlert.value = '';
currentPasswordCommentId.value = null; currentPasswordCommentId.value = null;
@ -755,6 +753,7 @@
if (targetComment) { if (targetComment) {
targetComment.content = editedContent; // targetComment.content = editedContent; //
targetComment.isEditTextarea = false; // targetComment.isEditTextarea = false; //
togglePassword('close');
} else { } else {
toastStore.onToast('수정할 댓글을 찾을 수 없습니다.', 'e'); toastStore.onToast('수정할 댓글을 찾을 수 없습니다.', 'e');
} }