Skip to content

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

@whatisaphone

Description

@whatisaphone

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]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions