diff --git a/src/components/voteboard/voteCardCheck.vue b/src/components/voteboard/voteCardCheck.vue index ff10468..d6d317e 100644 --- a/src/components/voteboard/voteCardCheck.vue +++ b/src/components/voteboard/voteCardCheck.vue @@ -88,7 +88,9 @@ const updateCheckedNames = (newValues) => { checkedNames.value = newValues; }; const selectVote = () =>{ - emit('checkedNames',checkedNames.value); + if(checkedNames.value != ''){ + emit('checkedNames',checkedNames.value); + } } diff --git a/src/components/voteboard/voteCardCheckList.vue b/src/components/voteboard/voteCardCheckList.vue index 098f68f..9f6aa6f 100644 --- a/src/components/voteboard/voteCardCheckList.vue +++ b/src/components/voteboard/voteCardCheckList.vue @@ -40,7 +40,6 @@ const emit = defineEmits(["update:selectedValues"]); const handleChange = (event) => { const value = event.target.value; let updatedValues = []; - // 체크박스일 때 여러 개 선택 가능 if (props.multiIs === "1") { updatedValues = event.target.checked