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

New option: don't close onselect #66

Open
andersdp opened this issue May 17, 2013 · 3 comments
Open

New option: don't close onselect #66

andersdp opened this issue May 17, 2013 · 3 comments

Comments

@andersdp
Copy link

I'm using pikaday for it's intended purpose but I would also like to use it for selecting a date and then update a list of events. It works fine except pikaday closes on every select.

An option to close on select or not and then supply a way of closing the calendar when done would be nice :) (i don't have the skills to code it myself)

(btw. anyone knows what 'Pikaday' means in danish?)

/anders
denmark

@kevincolten
Copy link

For anyone stopping by, you can accomplish this by utilizing the onSelect callback option

$('.datepicker').each(function() {
  new Pikaday({
    field: this,
    onSelect: function() {
      this.show();
    }
  });
});

@dustineichler
Copy link

Update bound: false seems to get this done too.

@marcel0ll
Copy link

This branch that adds a timepicker also adds a new property called 'autoClose' that is exactly what was suggested.

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

4 participants