Skip to content

Commit 47ceff8

Browse files
eshcharcscottgonzalez
authored andcommitted
DatePicker: datepicker_instActive released on instance destroy
Fixes #10668 Closes gh-1362 (cherry picked from commit e5e3ca4)
1 parent 27a88c8 commit 47ceff8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ui/datepicker.js

Lines changed: 4 additions & 0 deletions
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)