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

Bug: dates are incorrect (shifted) on grid click #76

Closed
pdpino opened this issue Apr 16, 2021 · 0 comments · Fixed by #77
Closed

Bug: dates are incorrect (shifted) on grid click #76

pdpino opened this issue Apr 16, 2021 · 0 comments · Fixed by #77

Comments

@pdpino
Copy link
Collaborator

pdpino commented Apr 16, 2021

When numberOfDays === 7, dates are shifted causing an incorrect date onGridClick.
See this from the example/ app:

rn-week-view-bug-initial-dates-shifted

I pressed April 15, and onGridClick returned April 18; then I pressed April 13, onGridClick returned April 16. There is a shift of three days.

This is due to the initialDates in WeekView not pointing to the actual start of the pages.

@pdpino pdpino changed the title Dates are shifted on grid click Bug: dates are incorrect (shifted) on grid click Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant