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

MinMonth and MaxMonth aren't working with jQuery 3.6.0 and jQuery UI 1.12.0 #99

Open
ianthedev opened this issue May 12, 2021 · 1 comment

Comments

@ianthedev
Copy link

In the official demo file, after I changed the versions of jQuery and jQuery UI to 3.6.0 and 1.12.0, respectively, the months and years which are outside the range set by MinMonth and MaxMonth can be selected.

@swuf
Copy link

swuf commented May 23, 2022

If anyone is still interested, we have been able to fix this by changing two lines in the _decorateButtons method:
Original:
_setDisabled(this._prevButton, _minDate && _curYear == _toYear(_minDate));
_setDisabled(this._nextButton, _maxDate && _curYear == _toYear(_maxDate));

Fixed:
_setDisabled(this._prevButton, _minDate != null && _curYear == _toYear(_minDate));
_setDisabled(this._nextButton, _maxDate != null && _curYear == _toYear(_maxDate));

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

No branches or pull requests

2 participants