diff --git a/src/components/main/MainEventCalendar.vue b/src/components/main/MainEventCalendar.vue index 902f759..9295536 100644 --- a/src/components/main/MainEventCalendar.vue +++ b/src/components/main/MainEventCalendar.vue @@ -156,7 +156,7 @@ monthBirthdayPartyList.value = []; monthDinnerList.value = []; monthTeaTimeList.value = []; - monthTeaTimeList.value = []; + monthWorkShopList.value = []; if (res?.eventList?.length) { res.eventList.forEach(item => { @@ -520,6 +520,10 @@ }, }); + const handleWheelEvent = e => { + handleCloseModal(); + }; + // 달력 뷰 변경 감지 (월 변경 시 데이터 다시 가져오기) watch( () => fullCalendarRef.value?.getApi().currentData.viewTitle, @@ -551,35 +555,31 @@ await fetchEventList(param); useFilterEventList(month, day); - // 이벤트모달 외부 클릭 감지 - // document.addEventListener('click', e => { - // if (showModal.value && !e.target.closest('.event-modal') && !e.target.closest('.fc-daygrid-day')) { - // showModal.value = false; - // } - // }); + // 스크롤 감지 이벤트 리스너 + window.addEventListener('wheel', handleWheelEvent); }); -