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

Fixed weekend bug (#107) #109

Merged
merged 5 commits into from
Dec 25, 2020
Merged

Fixed weekend bug (#107) #109

merged 5 commits into from
Dec 25, 2020

Conversation

qodesmith
Copy link
Owner

Fixed the bug with weekends not being properly disabled. Also took the opportunity to update the dependencies (although not all the way up to Webpack 5 yet).

@@ -841,7 +841,7 @@ function createMonth(date, instance, overlayOpen) {
var isSelected = +thisDay === +dateSelected

// Is this day a weekend? Weekends for Datepicker are strictly Saturday & Sunday.
var isWeekend = weekdayIndex === 0 || weekdayIndex === 6
var isWeekend = weekdayIndex === weekendIndices[0] || weekdayIndex === weekendIndices[1]
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the main culprit!

@qodesmith qodesmith merged commit e7abed4 into master Dec 25, 2020
@qodesmith qodesmith deleted the fixing-things branch December 25, 2020 14:18
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.

1 participant