React-dates: Range Controller - Selected dates not unpainted when they are off-screen

Created on 16 May 2018  路  3Comments  路  Source: airbnb/react-dates

Hi, I'm using DayPickerRangeController from version 12.1.2.
It sometimes fails to "unpaint" selected days when they aren't visible on the calendar. When I toggle back to them, they remain painted even when other selected or hovered days are correctly painted.
datepicker-issue
I'm using Redux with custom input boxes and have the selected start and end dates stored in the redux store. onDatesChange sends an action to update the start and end dates. It would seem strange to me if this was what was the issue, because the painting/unpainting works perfectly if the selected days are visible.

Most helpful comment

Yes, it looks like the updates have fixed the issue. Thanks, everyone, for your hard work!

All 3 comments

v12 is pretty old (we're on v16); if you upgrade to v16, do you see the same bug?

@Adam-Pendleton I think that we resolved this issue in https://github.com/airbnb/react-dates/pull/575 (v12.2.0) so you're only off by a minor! I would recommend upgrading at the very least to v12.7.1, but honestly probably through to v16 for the latest and greatest fixes and improvements. :)

Let us know if upgrading fixes your issue!

Yes, it looks like the updates have fixed the issue. Thanks, everyone, for your hard work!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

HartiganHM picture HartiganHM  路  3Comments

Jesus-Gonzalez picture Jesus-Gonzalez  路  3Comments

prztrz picture prztrz  路  3Comments

ekohanyi picture ekohanyi  路  3Comments

sag1v picture sag1v  路  3Comments