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

Fix initialDates shift bug #77

Merged
merged 1 commit into from
Apr 16, 2021
Merged

Conversation

pdpino
Copy link
Collaborator

@pdpino pdpino commented Apr 16, 2021

Fixes #76

  • Now the initialDates array contains the correct initial dates from each page, which did not occur before if numberOfDays was 7
  • Now the "decision" to start a week on Mondays gets relegated to the calculatePagesDates() method, and calculateDaysArray is simplified

@pdpino pdpino mentioned this pull request Apr 16, 2021
@hoangnm
Copy link
Owner

hoangnm commented Apr 16, 2021

I see, we missed this when refactored the code. Thanks, @pdpino, merging.

@hoangnm hoangnm merged commit 0a583a5 into hoangnm:master Apr 16, 2021
@pdpino pdpino deleted the bug/initial-dates branch April 17, 2021 21:41
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 this pull request may close these issues.

Bug: dates are incorrect (shifted) on grid click
2 participants