mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	bugfix: date selection in events calendar (#7374)
* Refactor Calendar component to update month details only when year or month changes * Update web/src/components/Calendar.jsx Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com> --------- Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
This commit is contained in:
		
							parent
							
								
									36ccaa4cff
								
							
						
					
					
						commit
						24365fb865
					
				@ -102,9 +102,8 @@ const Calendar = ({ onChange, calendarRef, close, dateRange, children }) => {
 | 
			
		||||
      ...prev,
 | 
			
		||||
      selectedDay: todayTimestamp,
 | 
			
		||||
      monthDetails: getMonthDetails(year, month),
 | 
			
		||||
      timeRange: { ...dateRange },
 | 
			
		||||
    }));
 | 
			
		||||
  }, [year, month, getMonthDetails, dateRange]);
 | 
			
		||||
  }, [year, month, getMonthDetails]);
 | 
			
		||||
 | 
			
		||||
  useEffect(() => {
 | 
			
		||||
    // add refs for keyboard navigation
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user