Skip to content

Commit ebeb8a2

Browse files
committed
Drop filter-related scroll persistence logic
I don't think we have a clear case where this is needed - can re-evalate if we find this does have some specific missing edge cases though.
1 parent adb5faf commit ebeb8a2

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/components/view/view-event-list.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -926,11 +926,6 @@ export class ViewEventList extends React.Component<ViewEventListProps> {
926926
// If the selected event changed and we have a selected event, scroll to it
927927
// This handles restoring the selected event when returning to the tab
928928
this.scrollToEvent(this.props.selectedEvent);
929-
} else if (prevProps.filteredEvents.length !== this.props.filteredEvents.length) {
930-
// If the filtered events changed (e.g., new events loaded), try to restore scroll position
931-
setTimeout(() => {
932-
this.restoreScrollPosition();
933-
}, 50);
934929
}
935930
}
936931

0 commit comments

Comments
 (0)