Skip to content

Commit e5e3ca4

Browse files
eshcharctjvantoll
authored andcommitted
DatePicker: datepicker_instActive released on instance destroy
Fixes #10668 Closes jquerygh-1362
1 parent c0df7b0 commit e5e3ca4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ui/datepicker.js

+4
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,10 @@ $.extend(Datepicker.prototype, {
389389
} else if (nodeName === "div" || nodeName === "span") {
390390
$target.removeClass(this.markerClassName).empty();
391391
}
392+
393+
if ( datepicker_instActive === inst ) {
394+
datepicker_instActive = null;
395+
}
392396
},
393397

394398
/* Enable the date picker to a jQuery selection.

0 commit comments

Comments
 (0)