From: Scott González Date: Wed, 10 Aug 2011 11:55:19 +0000 (-0400) Subject: Datepicker: Revert "Datepicker: Removing unnessecary typeof check. Fixed #6669 -... X-Git-Tag: 1.9m6~39 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bb79b418717bbd4b2ae800fc8c6bbe39682a2283;p=jquery-ui.git 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. --- diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index 3b8caa59b..0b6fb2218 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; } },