Skip to content

Commit

Permalink
Datepicker: Revert "Datepicker: Removing unnessecary typeof check. Fi…
Browse files Browse the repository at this point in the history
…xed #6669 - Datepicker: _selectDate restores focus to non-object" Fixes #7623 - DatePicker reappears after selection in ie8.

This reverts commit 86a09ae.
  • Loading branch information
scottgonzalez committed Aug 10, 2011
1 parent 1d266c1 commit 7c15d3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/jquery.ui.datepicker.js
Expand Up @@ -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;
}
},
Expand Down

0 comments on commit 7c15d3c

Please sign in to comment.