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

Widget doesn't show on second click with format YYYY-MM-DD #1069

Closed
chanjarster opened this issue May 21, 2015 · 3 comments
Closed

Widget doesn't show on second click with format YYYY-MM-DD #1069

chanjarster opened this issue May 21, 2015 · 3 comments

Comments

@chanjarster
Copy link

Hi, I created a fiddle ( http://jsfiddle.net/chanjarster/r450s3Lg/2/ ) to demonstrate the bug.

Steps of reproducing:

  1. create a datetimepicker with format YYYY-MM-DD
  2. click the input, widget shows
  3. select a day, input updates, widget closes
  4. click the input, widget doesn't show

I think there are two ways to solve this:

  1. when widge closes, blur the input
  2. or, keep the same behavior of format HH:mm. The time picker in the fiddle doesn't close unless you click other place

Thank you very much

@Eonasdan
Copy link
Owner

we can blur the input in a future version. in the meantime, you can set the option keepOpen which will keep the picker open until the person clicks off

@benmarte
Copy link

benmarte commented Jun 3, 2015

This also occurs if you use the showClose option and close the datepicker with the close button, the input field retains focus and will not open the date picker when clicked on a second time unless you click outside the input field.

Example can be seen here: http://jsfiddle.net/0Ltv25o8/1193/

@Eonasdan
Copy link
Owner

please check the dev branch

@ghost ghost locked and limited conversation to collaborators Jun 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants