engineer9090909090909090 / jquery-datepicker

Automatically exported from code.google.com/p/jquery-datepicker
0 stars 0 forks source link

stays open if field loses focus while animating (eg fade in) #224

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Focus the field, quickly (before animation finishes) focus elsewhere. E.g. tab 
into and tab out of the field, or click in and click out of the field.

What is the expected output? What do you see instead?
Datepicker should hide if field blurred while animating.

Please provide a URL to a page displaying the problem.
http://jqueryui.com/demos/datepicker/#default

What version of the datepicker are you using? On what operating system? And 
Which Browser?
FF 3.6.6

Please provide any additional information below.

Original issue reported on code.google.com by mcn...@gmail.com on 9 Jul 2010 at 1:34

GoogleCodeExporter commented 8 years ago
A solution (for tabbing only, mouse click is less of a problem):

Add:
_doKeyDown: function(event) {
...
break; // +1 week on ctrl or command +down
default: handled = false;
}
>>>> here <<<<
else if (event.keyCode == 36 && event.ctrlKey) // display the date picker on 
ctrl+home
$.datepicker._showDatepicker(this);
else {

This code:
else if (event.keyCode == 9) {
// tab out while animating in
$.datepicker._hideDatepicker();
handled = false;
}

And in:
_hideDatepicker: function(input) {

Comment out:
if (this._datepickerShowing) {

and the closing }

Original comment by mcn...@gmail.com on 9 Jul 2010 at 2:03

GoogleCodeExporter commented 8 years ago
http://code.google.com/p/jquery-datepicker/wiki/NotTheUIDatePicker

Original comment by kelvin.l...@gmail.com on 11 Jul 2010 at 1:00

GoogleCodeExporter commented 8 years ago
http://code.google.com/p/jquery-datepicker/wiki/NotTheUIDatePicker

Original comment by kelvin.l...@gmail.com on 11 Jul 2010 at 1:00