Skip to content

Update datepicker.js. Improve keyboard support #1677

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

Closed
wants to merge 1 commit into from

Conversation

piotros
Copy link
Contributor

@piotros piotros commented Feb 19, 2016

I found the problem with keyboard support feature.
Take a look at this example: https://jsfiddle.net/mye1oy63/5/ It's impossible to go (using Ctrl+arrows) to dates later than 7 April 2016. My little change in code fixes this bug.

I found the problem with keyboard support feature.
Take a look at this example: https://jsfiddle.net/mye1oy63/5/ It's impossible to go (using Ctrl+arrows) to dates later than 7 April 2016. My little change in code fixes this bug.
@jquerybot
Copy link

Thank you for your pull request. It looks like this may be your first contribution to a jQuery Foundation project, if so we need you to sign our Contributor License Agreement (CLA).

📝 Please visit http://contribute.jquery.org/CLA/ to sign.

After you signed, the PR is checked again automatically after a minute. If there's still an issue, please reply here to let us know.


If you've already signed our CLA, it's possible your git author information doesn't match your CLA signature (both your name and email have to match), for more information, check the status of your CLA check.

@@ -1914,7 +1914,7 @@ $.extend( Datepicker.prototype, {
/* Adjust one of the date sub-fields. */
_adjustInstDate: function( inst, offset, period ) {
var year = inst.drawYear + ( period === "Y" ? offset : 0 ),
Copy link
Member

Choose a reason for hiding this comment

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

I'm going to update this line as well when I merge this fix.

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

Successfully merging this pull request may close these issues.

3 participants