Skip to content

Commit c93414a

Browse files
committed
InfiniteAgendaList - fix calendar not updating properly when on list drag (#2651)
1 parent 39142c8 commit c93414a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/expandableCalendar/AgendaList/infiniteAgendaList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ const InfiniteAgendaList = ({
184184
onScroll?.(event as any);
185185
}, [onScroll]);
186186

187-
const _onVisibleIndicesChanged = useCallback(debounce((all: number[]) => {
187+
const _onVisibleIndicesChanged = useCallback((all: number[]) => {
188188
if (all && all.length && !sectionScroll.current) {
189189
const topItemIndex = all[0];
190190
const topSection = data[findItemTitleIndex(topItemIndex)];
@@ -196,7 +196,7 @@ const InfiniteAgendaList = ({
196196
}
197197
}
198198
}
199-
}, infiniteListProps?.visibleIndicesChangedDebounce ?? 1000, {leading: false, trailing: true},), [avoidDateUpdates, setDate, data]);
199+
}, [avoidDateUpdates, setDate, data]);
200200

201201
const findItemTitleIndex = useCallback((itemIndex: number) => {
202202
let titleIndex = itemIndex;

0 commit comments

Comments
 (0)