Keyboard handling bug with multiple datepickers on line 1508, fix included
whatisaphone opened this issue · comments
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]);