Blueprint: Date range bug around December 2016

Created on 27 Dec 2016  路  3Comments  路  Source: palantir/blueprint

Bug report

  • __Package version(s)__: 1.4.0
  • __Browser and OS versions__: Chrome v55 & Firefox v50 on MacOs X 10.11.6

Steps to reproduce

  1. Open http://blueprintjs.com/docs/#components.datetime.daterangepicker
  2. Select December 2016 on the left part of the date range picker
  3. Notice the right picker now displays January 1996

Expected behavior

The right picker displays January 2017

image

P2 datetime bug

Most helpful comment

Hi people, I believe the header is wrong - it should say "January 2017" because that is the month being displayed (see https://github.com/gpbl/react-day-picker/issues/243#issuecomment-270256154).

All 3 comments

Looks like a duplicate of #289, which should've been fixed by #312? The expected behavior here is that December 2016 shows up on the right and you aren't able to advance past the max date.

This is not exactly a duplicate, the repro steps say to explicitly select December 2016 on the left calendar. But it is another way of triggering the same issue, which we can't really do anything about as it's part of the react-day-picker implementation.

In the example component, January 2017 is past the maxDate so the calendar wraps to the minDate.

Hi people, I believe the header is wrong - it should say "January 2017" because that is the month being displayed (see https://github.com/gpbl/react-day-picker/issues/243#issuecomment-270256154).

Was this page helpful?
0 / 5 - 0 ratings