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

Keyboard handling bug with multiple datepickers on line 1508, fix included #33

Open
whatisaphone opened this issue Feb 2, 2016 · 0 comments

Comments

@whatisaphone
Copy link

Keyboard handling is borked on pages with more than one datepick control. There's a $() call which isn't scoped properly because inst.div is undefined for inline datepickers.

I fixed it by changing the following code on line 1508:

plugin.selectDate(elem,
    $('a.' + inst.options.renderer.highlightedClass, inst.div)[0]);

to this:

plugin.selectDate(elem,
    $('a.' + inst.options.renderer.highlightedClass, inst.elem)[0]);
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

1 participant