Skip to content

Commit 68287bb

Browse files
Updated the itemIndex (#2244)
The change is to fix scroll issue on date selection, the fix enables the data to scroll to the selected date
1 parent 0bd3f11 commit 68287bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expandableCalendar/agendaList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ const AgendaList = (props: AgendaListProps) => {
176176
list?.current.scrollToLocation({
177177
animated: true,
178178
sectionIndex: sectionIndex,
179-
itemIndex: 0,
179+
itemIndex: 1,
180180
viewPosition: 0, // position at the top
181181
viewOffset: (constants.isAndroid ? sectionHeight.current : 0) + viewOffset
182182
});

0 commit comments

Comments
 (0)