From 47ceff8dbd1f64c081f8fd136d86a5db23fef0ff Mon Sep 17 00:00:00 2001 From: Chen Eshchar Date: Sun, 19 Oct 2014 09:37:21 +0300 Subject: [PATCH] DatePicker: datepicker_instActive released on instance destroy Fixes #10668 Closes gh-1362 (cherry picked from commit e5e3ca4240fbae9684f689ec6e00882ec0211922) --- ui/datepicker.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/datepicker.js b/ui/datepicker.js index d3fe3dd1f..34ffc578e 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. -- 2.39.5