Opened 13 years ago

Closed 11 years ago

#5843 closed bug (invalid)

Datepicker: stays open if you tab out quickly

Reported by: [email protected] Owned by: [email protected]
Priority: minor Milestone: 1.11.0
Component: ui.datepicker Version: 1.8.2
Keywords: Cc:
Blocked by: Blocking:

Description

A solution (for tabbing only, mouse click is less of a problem):

Add this code:

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

Here:

_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 {

And in: _hideDatepicker: function(input) {

Comment out:

if (this._datepickerShowing) {

and the closing }

Change History (4)

comment:1 Changed 13 years ago by Jörn Zaefferer

Component: ui.coreui.datepicker

comment:2 Changed 11 years ago by Scott González

Milestone: TBD1.11.0

comment:3 Changed 11 years ago by petersendidit

Owner: set to [email protected]
Status: newpending
Summary: Datepicker stays open if you tab out quicklyDatepicker: stays open if you tab out quickly

I was unable to recreate this problem: http://jsfiddle.net/petersendidit/kSjaP/

Can you still recreate this problem? What browser?

comment:4 Changed 11 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.