Search and Top Navigation
#5524 closed bug (duplicate)
Opened April 16, 2010 10:53PM UTC
Closed October 17, 2012 04:36AM UTC
Tabbing quickly through datepicker-enabled field leaves calendar stuck
| Reported by: | dlee | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.11.0 |
| Component: | ui.datepicker | Version: | 1.8 |
| Keywords: | Cc: | ||
| Blocked by: | Blocking: |
Description
When I tab into a datepicker-enabled field, the calendar correctly pops up. When I tab away, the calendar disappears, but if I tab away too quickly (while the calendar is growing), the calendar remains up.
Reproduce this by tabbing in and then quickly tabbing out of a datepicker-enabled field.
The visibility flag is set too late - so make this change to _showDatepicker function:
var postProcess = function() { // $.datepicker._datepickerShowing = true; // Remove from here var borders = $.datepicker._getBorders(inst.dpDiv); inst.dpDiv.find('iframe.ui-datepicker-cover'). // IE6- only css({left: -borders[0], top: -borders[1], width: inst.dpDiv.outerWidth(), height: inst.dpDiv.outerHeight()}); }; inst.dpDiv.zIndex($(input).zIndex()+1); $.datepicker._datepickerShowing = true; // And add it here