diff --git a/ui/datepicker.js b/ui/datepicker.js index d3fe3dd1fe9..098bb7a4327 100644 --- a/ui/datepicker.js +++ b/ui/datepicker.js @@ -389,6 +389,10 @@ $.extend(Datepicker.prototype, { } else if (nodeName === "div" || nodeName === "span") { $target.removeClass(this.markerClassName).empty(); } + + if(datepicker_instActive === inst) { + datepicker_instActive = null; + } }, /* Enable the date picker to a jQuery selection.