mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Datepicker: Don't set _curInst in hideDatepicker. Fixes #8174 - jQuery datepicker is stuck open if label is clicked from open state.
(cherry picked from commit 4ade13450e
)
Conflicts:
ui/jquery.ui.datepicker.js
This commit is contained in:
parent
97d9628929
commit
fc6e72bf73
2
ui/jquery.ui.datepicker.js
vendored
2
ui/jquery.ui.datepicker.js
vendored
@ -800,10 +800,8 @@ $.extend(Datepicker.prototype, {
|
|||||||
if (this._datepickerShowing) {
|
if (this._datepickerShowing) {
|
||||||
var showAnim = this._get(inst, 'showAnim');
|
var showAnim = this._get(inst, 'showAnim');
|
||||||
var duration = this._get(inst, 'duration');
|
var duration = this._get(inst, 'duration');
|
||||||
var self = this;
|
|
||||||
var postProcess = function() {
|
var postProcess = function() {
|
||||||
$.datepicker._tidyDialog(inst);
|
$.datepicker._tidyDialog(inst);
|
||||||
self._curInst = null;
|
|
||||||
};
|
};
|
||||||
if ($.effects && $.effects[showAnim])
|
if ($.effects && $.effects[showAnim])
|
||||||
inst.dpDiv.hide(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess);
|
inst.dpDiv.hide(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess);
|
||||||
|
Loading…
Reference in New Issue
Block a user