Skip to content

Commit e9d91b2

Browse files
ethansharInbal-Tish
authored andcommitted
Merge pull request #1967 from wix/fix/Provider_todayBtn_Agenda
AgendaList - fix Today button not active when end scroll
1 parent 9c045ac commit e9d91b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/expandableCalendar/Context/Provider.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const CalendarProvider = (props: CalendarContextProviderProps) => {
111111
}
112112
setIsDisabled(disabled);
113113
animateOpacity(disabled);
114-
}, [showTodayButton]);
114+
}, [showTodayButton, isDisabled]);
115115

116116
const contextValue = useMemo(() => {
117117
return {
@@ -123,7 +123,7 @@ const CalendarProvider = (props: CalendarContextProviderProps) => {
123123
numberOfDays,
124124
timelineLeftInset
125125
};
126-
}, [currentDate, updateSource, numberOfDays]);
126+
}, [currentDate, updateSource, numberOfDays, _setDisabled]);
127127

128128
/** Animations */
129129

0 commit comments

Comments
 (0)