From bb79b418717bbd4b2ae800fc8c6bbe39682a2283 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Wed, 10 Aug 2011 07:55:19 -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 5f0a2f01c4609315ab66158191d3f9bd420f827f. --- 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 3b8caa59b6..0b6fb2218b 100644 --- a/ui/jquery.ui.datepicker.js +++ b/ui/jquery.ui.datepicker.js @@ -934,7 +934,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; } },