diff --git a/src/components/board/BoardCommentArea.vue b/src/components/board/BoardCommentArea.vue index b304795..0ffbc98 100644 --- a/src/components/board/BoardCommentArea.vue +++ b/src/components/board/BoardCommentArea.vue @@ -11,7 +11,14 @@ -->
- + {{ commentAlert }} {{ textAlert }}
@@ -35,6 +42,7 @@ class="form-control flex-grow-1" v-model="password" placeholder="비밀번호 입력" + @input="passwordAlertTextHandler" /> {{ passwordAlert }} {{ passwordAlert2 }} @@ -89,6 +97,14 @@ const emit = defineEmits(['submitComment']); + const alertTextHandler = () => { + textAlert.value = ''; + }; + + const passwordAlertTextHandler = () => { + passwordAlert2.value = ''; + }; + const handleCommentSubmit = () => { if (!$common.isNotEmpty(comment.value)) { textAlert.value = '댓글을 입력하세요';