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

maxDate not working #43

Closed
NurdinDev opened this issue Mar 3, 2018 · 4 comments
Closed

maxDate not working #43

NurdinDev opened this issue Mar 3, 2018 · 4 comments
Assignees
Labels

Comments

@NurdinDev
Copy link

I can't add maxDate, I add to the options the following code.

maxDate: new Date(),
@Wikiki Wikiki self-assigned this Mar 5, 2018
@Wikiki Wikiki added the bug label Mar 5, 2018
@Wikiki
Copy link
Collaborator

Wikiki commented Mar 16, 2018

Please provide a working codepen. Becaus I can't reproduce this issue (the documentation page use it and it's working fine : see last overlay demo)

@erik888
Copy link

erik888 commented Apr 12, 2018

If you don't add a minDate it won't work. Just add:
minDate: new Date(1900,1,1)

@erik888
Copy link

erik888 commented Apr 12, 2018

Within _renderdays should be:
if (day.getMonth() !== this.month || (this.options.minDate &&
day.getTime() < this.options.minDate.getTime()) || (this.options.maxDate && day.getTime() > this.options.maxDate.getTime())) {
isDisabled = true;
}

Wikiki added a commit that referenced this issue Apr 13, 2018
@Wikiki
Copy link
Collaborator

Wikiki commented Apr 13, 2018

@erik888: thanks for the fix.
It has been integrated into v1.3.0

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

No branches or pull requests

3 participants