diff --git a/src/components/list/ProjectCard.vue b/src/components/list/ProjectCard.vue index 79f714a..9ca03ea 100644 --- a/src/components/list/ProjectCard.vue +++ b/src/components/list/ProjectCard.vue @@ -292,25 +292,27 @@ const selectedUsers = ref({ }); - const startDateInput = ref(null); - const endDateInput = ref(null); +const isKakaoMapLoaded = ref(false); - // DOM 요소에 직접 접근하기 위한 변수들 - let startInputElement = null; - let endInputElement = null; +const startDateInput = ref(null); +const endDateInput = ref(null); + +// DOM 요소에 직접 접근하기 위한 변수들 +let startInputElement = null; +let endInputElement = null; - const openStartDatePicker = () => { - if (startInputElement) { - startInputElement.showPicker(); - } - }; +const openStartDatePicker = () => { + if (startInputElement) { + startInputElement.showPicker(); + } +}; - const openEndDatePicker = () => { - if (endInputElement) { - endInputElement.showPicker(); - } - }; +const openEndDatePicker = () => { + if (endInputElement) { + endInputElement.showPicker(); + } +}; // 사용자 목록 업데이트 핸들러 @@ -607,7 +609,8 @@ onMounted(async () => { // Kakao Maps API 로드 확인 const checkKakaoMapsLoaded = () => { - if (window.kakao && window.kakao.maps) { + if (window.kakao && window.kakao.maps && window.kakao.maps.services) { + isKakaoMapLoaded.value = true; convertAddressToCoordinates(); } else { setTimeout(checkKakaoMapsLoaded, 500);