Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

date range picker "Last year" initially goes to wrong end date #420

Open
sandikbarr opened this issue Jun 30, 2020 · 0 comments
Open

date range picker "Last year" initially goes to wrong end date #420

sandikbarr opened this issue Jun 30, 2020 · 0 comments

Comments

@sandikbarr
Copy link
Contributor

This bug was throwing an Expression changed after checked error in development mode. In production, I can reproduce this bug consistently only when I've first loaded the app, but not after clicking and applying a different date range.

When the "Last year - Jan 1 - Dec 31" option in the date range picker is clicked, initially it will show an end date of 4 weeks back from the current date instead of Dec 31. Click it again and you get the correct date, Dec 31. Once I apply a different date range, I can't seem to reproduce the bug again unless I reload the app. This only seems to happen with the Last year option. It's very strange and seems to be a bug in the underlying date picker library pikaday, which is unfortunately no longer maintained. 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant