diff --git a/client/src/components/Calendar.tsx b/client/src/components/Calendar.tsx index d23b004..721f245 100644 --- a/client/src/components/Calendar.tsx +++ b/client/src/components/Calendar.tsx @@ -119,6 +119,7 @@ export const Calendar = ({ // FullCalendar の state const [events, setEvents] = useState([]); + const [tooltipKey, setTooltipKey] = useState(0); // editingSlots/viewingSlots → matrix → events useEffect(() => { @@ -460,6 +461,13 @@ export const Calendar = ({ } }, []); + /** + * カレンダーで表示される日付範囲が変更されると呼ばれる。 https://fullcalendar.io/docs/datesSet + */ + const handleDatesSet = useCallback(() => { + setTooltipKey((prev) => prev + 1); + }, []); + return (