React-dates: `verticalScrollable` orientation on `DayPickerSingleDateController` doesn't allow adding previous months

Created on 11 Jul 2018  路  7Comments  路  Source: airbnb/react-dates

verticalScrollable orientation on DayPickerSingleDateController doesn't allow adding previous months

Clicking on the the downward facing arrow in the bottom of the current list add, as one could expect, more incoming months.
Having the same for previous months would be great.

pull request wanted

Most helpful comment

Hello, i have some time and will to work on this issue. Can i do it? @majapw / @backwardok

All 7 comments

I would guess that work need to be done to around the renderNavigation and multiplyScrollableMonths functions of the DayPicker

I also guess that https://github.com/airbnb/react-dates/issues/949 does relate

+1

+1

Any update on this issue? We are experiencing this at the moment. We have temporarily worked around the issue for now, but that workaround is having it's own issues.

This also affects the DayPickerRangeController, not just the single date picker.

We worked around it by delaying when we selected the date/s in the dialog (via the onFocus handle), this now shows the previous month as it should. However the users selection isn't shown on their page they need to scroll down to see their selection if they made it beyond the number of initially visible months.

I've come across this issue today too. I managed to work around it by settinginitialVisibleMonth to a previous month & then date to the selected month. This means that the calendar renders months from the initialVisibleMonth, but my selected date isn't visible and I have to scroll to it.

Hello, i have some time and will to work on this issue. Can i do it? @majapw / @backwardok

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ckeeney picture ckeeney  路  22Comments

wub picture wub  路  20Comments

AntiFish03 picture AntiFish03  路  19Comments

maxmoeschinger picture maxmoeschinger  路  68Comments

brunocoelho picture brunocoelho  路  28Comments