Skip to content

Commit 2e389d6

Browse files
author
Daniel Borstelmann
committed
forgot about setState async
1 parent b834099 commit 2e389d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/agenda/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export default class AgendaView extends Component {
216216
calendarScrollable: true
217217
});
218218
if (this.props.calendarToggled) {
219-
this.props.calendarToggled(this.state.calendarScrollable);
219+
this.props.calendarToggled(true);
220220
}
221221
// Enlarge calendarOffset here as a workaround on iOS to force repaint.
222222
// Otherwise the month after current one or before current one remains invisible.
@@ -240,7 +240,7 @@ export default class AgendaView extends Component {
240240
selectedDay: day.clone()
241241
});
242242
if (this.props.calendarToggled) {
243-
this.props.calendarToggled(this.state.calendarScrollable);
243+
this.props.calendarToggled(false);
244244
}
245245
if (!optimisticScroll) {
246246
this.setState({

0 commit comments

Comments
 (0)