Permalink
Browse files

Datepicker: Revert "Datepicker: Removing unnessecary typeof check. Fi…

…xed #6669 - Datepicker: _selectDate restores focus to non-object" Fixes #7623 - DatePicker reappears after selection in ie8.

This reverts commit 86a09ae.
  • Loading branch information...
1 parent 1d266c1 commit 7c15d3c19f9cdde9cc82ac0486a93b01ec03eb6b @scottgonzalez scottgonzalez committed Aug 10, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 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;
}
},

0 comments on commit 7c15d3c

Please sign in to comment.