From 7c15d3c19f9cdde9cc82ac0486a93b01ec03eb6b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Wed, 10 Aug 2011 07:58:17 -0400 Subject: [PATCH] Datepicker: Revert "Datepicker: Removing unnessecary typeof check. Fixed #6669 - Datepicker: _selectDate restores focus to non-object" Fixes #7623 - DatePicker reappears after selection in ie8. This reverts commit 86a09aeb332851971bc2b2ce6bbf4d4292b12020. --- ui/jquery.ui.datepicker.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index 417758756..a0b81e86a 100644 --- a/ui/jquery.ui.datepicker.js +++ b/ui/jquery.ui.datepicker.js @@ -930,7 +930,8 @@ $.extend(Datepicker.prototype, { else { this._hideDatepicker(); this._lastInput = inst.input[0]; - inst.input.focus(); // restore focus + if (typeof(inst.input[0]) != 'object') + inst.input.focus(); // restore focus this._lastInput = null; } }, -- 2.39.5