We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32efe4a commit 89bcf5bCopy full SHA for 89bcf5b
src/agenda/reservation-list/index.tsx
@@ -123,10 +123,10 @@ class ReservationList extends Component<ReservationListProps, State> {
123
}
124
125
updateReservations(props: ReservationListProps) {
126
- const {selectedDay} = props;
+ const {selectedDay, showOnlySelectedDayItems} = props;
127
const reservations = this.getReservations(props);
128
129
- if (this.list && !sameDate(selectedDay, this.selectedDay)) {
+ if (!showOnlySelectedDayItems && this.list && !sameDate(selectedDay, this.selectedDay)) {
130
let scrollPosition = 0;
131
for (let i = 0; i < reservations.scrollPosition; i++) {
132
scrollPosition += this.heights[i] || 0;
0 commit comments