diff --git a/src/components/input/FormInput.vue b/src/components/input/FormInput.vue index a51c16c..d1ad6fd 100644 --- a/src/components/input/FormInput.vue +++ b/src/components/input/FormInput.vue @@ -15,6 +15,7 @@ :disabled="disabled" :min="min" @focusout="$emit('focusout', modelValue)" + @input="handleInput" />
{{ title }}을 확인해주세요. @@ -92,11 +93,6 @@ const inputValue = ref(props.modelValue); // 부모로 데이터 업데이트 watch(inputValue, (newValue) => { emits('update:modelValue', newValue); - - // 값이 입력될 때 `alert`를 false로 설정 - if (newValue.trim() !== '') { - emits('update:alert', false); - } }); // 초기값 동기화 @@ -106,6 +102,13 @@ watch(() => props.modelValue, (newValue) => { } }); +const handleInput = (event) => { + const newValue = event.target.value.slice(0, props.maxlength); + + if (newValue.trim() !== '') { + emits('update:alert', false); + } +}; diff --git a/src/components/list/ProjectCard.vue b/src/components/list/ProjectCard.vue index 272c0f4..7af8059 100644 --- a/src/components/list/ProjectCard.vue +++ b/src/components/list/ProjectCard.vue @@ -38,7 +38,7 @@
{{ address }} {{ addressdtail }} -
+
@@ -46,8 +46,7 @@ v-if="coordinates" :lat="coordinates.lat" :lng="coordinates.lng" - :draggable="false" - class="w-100 h-px-200" + class="w-px-200 h-px-200" > diff --git a/src/views/board/BoardWrite.vue b/src/views/board/BoardWrite.vue index 45d2657..1bf48cf 100644 --- a/src/views/board/BoardWrite.vue +++ b/src/views/board/BoardWrite.vue @@ -9,7 +9,6 @@
- *
- +
내용을 입력해주세요. @@ -93,22 +92,22 @@