게시글 비밀번호 입력란 노출 로직 변경

This commit is contained in:
nevermoregb 2025-03-18 12:34:16 +09:00
parent 035aa88a26
commit 8c89de1731

View File

@ -583,14 +583,17 @@
lastCommentClickedButton.value = button;
};
//
const togglePassword = button => {
// close: .
boardPasswordAlert.value = '';
if (button === 'close') {
isPassword.value = false;
boardPasswordAlert.value = '';
password.value = '';
return;
}
closeAllPasswordAreas();
if (lastClickedButton.value === button) {
isPassword.value = !isPassword.value;
boardPasswordAlert.value = '';