Skip to content

problem displaying the datepicker with option 'c' (centered). #148

Description

@toitoibisbis

With option 'c' (centered), after clicking the input field, the datepicker immediatly closes again.
This happens when the datepicker is placed over the input element it is connected with.
This is in Chrome: Version 122.0.6261.111 (Official Build) (64-bit). (It runs fine in Firefox).

The problem i think is at the function oneHandler at : picker.el===target.

function oneHandler(e) {
  ...
  var instance = datepickers.filter(function(picker) {
    return picker.calendar.contains(target) || picker.el === target

Because at this point the picker instance is "undefined".
And then the calendar is hidden because of if (!instance).

Except for this, i think it's a wonderful datepicker.
I have no idea how to solve this. Help greatly appreciated!

Greetings, Sebastian

Activity

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

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