pickadate.js icon indicating copy to clipboard operation
pickadate.js copied to clipboard

Clicking on Today, clear and close does not close the datepicker in IE

Open ghost opened this issue 10 years ago • 6 comments

I have editable set to true and clicking on either of the today, clear and close buttons does not close the datepicker in IE 11, while it works fine in other browsers.

Here is the codepen to test in IE - http://codepen.io/harish2rock/pen/OMOXVV

ghost avatar Jan 18 '16 16:01 ghost

Same issue here. I managed to call picker.close() after picker.on('set') which takes care of the today and clear buttons. I did the same for the close button onclick. Which works the first time, but stops working after choosing a date.

How did you manage to solve this?

rsistermans avatar Apr 11 '16 12:04 rsistermans

I could not find any solution. I ended up disabling those buttons in all the browsers. As far as I know, this defect is still open and needs a fix.

ghost avatar Apr 13 '16 16:04 ghost

@rsistermans I was also able to override using API methods, but I'm using the Year and Month drop downs in tandem and when you use them the buttons end up breaking again until you reopen the picker. We are using jQuery v3.1.1. I noticed that they are using v1.11 on their site and the buttons are working, but it should be working for all versions above 1.7 as stated in documentation.

TheHomeRepo avatar Jun 21 '17 17:06 TheHomeRepo

So far I see, is this bug still not fixed and only occurs if editable is set to true:

https://amsul.ca/pickadate.js/date/#editable

Dodger77 avatar Nov 07 '19 10:11 Dodger77

Hi @Dodger77,

does this also occur with Pickadate v5?

DanielRuf avatar Nov 07 '19 10:11 DanielRuf

@DanielRuf v5 does not work in IE11 at all and has no editable option AFAIK.

Dodger77 avatar Nov 07 '19 11:11 Dodger77