From 6f26b666f9b7e1e48c9a56dfdfbc6e15a7af331a Mon Sep 17 00:00:00 2001 From: akravchukabto Date: Tue, 11 Mar 2025 13:48:01 +0200 Subject: [PATCH] fix: Agenda dates disappearing on component load --- src/agenda/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/agenda/index.tsx b/src/agenda/index.tsx index 5bd8510ae9..18e9aec8b9 100644 --- a/src/agenda/index.tsx +++ b/src/agenda/index.tsx @@ -258,7 +258,10 @@ export default class Agenda extends Component { // scroll position actually changes (it would stay at 0, when scrolled to the top). this.setScrollPadPosition(this.initialScrollPadPosition(), false); // delay rendering calendar in full height because otherwise it still flickers sometimes - setTimeout(() => this.setState({calendarIsReady: true}), 0); + setTimeout(() => { + this.setState({calendarIsReady: true}); + this.calendar?.current?.scrollToDay(this.state.selectedDay, this.calendarOffset(), false); + }, 0); }; onCalendarListLayout = () => {