mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Datepicker: Moved the setting of _datepickerShowing to after postProcess to prevent being able to tab away leaving the datepicker open. Fixed #6775 - DatePicker remains open when tabbing out
This commit is contained in:
parent
af5b5b1948
commit
88d8209fdd
2
ui/jquery.ui.datepicker.js
vendored
2
ui/jquery.ui.datepicker.js
vendored
@ -648,7 +648,6 @@ $.extend(Datepicker.prototype, {
|
|||||||
var showAnim = $.datepicker._get(inst, 'showAnim');
|
var showAnim = $.datepicker._get(inst, 'showAnim');
|
||||||
var duration = $.datepicker._get(inst, 'duration');
|
var duration = $.datepicker._get(inst, 'duration');
|
||||||
var postProcess = function() {
|
var postProcess = function() {
|
||||||
$.datepicker._datepickerShowing = true;
|
|
||||||
var cover = inst.dpDiv.find('iframe.ui-datepicker-cover'); // IE6- only
|
var cover = inst.dpDiv.find('iframe.ui-datepicker-cover'); // IE6- only
|
||||||
if( !! cover.length ){
|
if( !! cover.length ){
|
||||||
var borders = $.datepicker._getBorders(inst.dpDiv);
|
var borders = $.datepicker._getBorders(inst.dpDiv);
|
||||||
@ -657,6 +656,7 @@ $.extend(Datepicker.prototype, {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
inst.dpDiv.zIndex($(input).zIndex()+1);
|
inst.dpDiv.zIndex($(input).zIndex()+1);
|
||||||
|
$.datepicker._datepickerShowing = true;
|
||||||
|
|
||||||
// DEPRECATED: after BC for 1.8.x $.effects[ showAnim ] is not needed
|
// DEPRECATED: after BC for 1.8.x $.effects[ showAnim ] is not needed
|
||||||
if ( $.effects && ( $.effects.effect[ showAnim ] || $.effects[ showAnim ] ) )
|
if ( $.effects && ( $.effects.effect[ showAnim ] || $.effects[ showAnim ] ) )
|
||||||
|
Loading…
Reference in New Issue
Block a user