Skip to content

Commit 7c15d3c

Browse files
committed
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 86a09ae.
1 parent 1d266c1 commit 7c15d3c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/jquery.ui.datepicker.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,8 @@ $.extend(Datepicker.prototype, {
930930
else {
931931
this._hideDatepicker();
932932
this._lastInput = inst.input[0];
933-
inst.input.focus(); // restore focus
933+
if (typeof(inst.input[0]) != 'object')
934+
inst.input.focus(); // restore focus
934935
this._lastInput = null;
935936
}
936937
},

0 commit comments

Comments
 (0)