Skip to content

Commit bb79b41

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 5f0a2f0.
1 parent 7c7d3df commit bb79b41

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
@@ -934,7 +934,8 @@ $.extend(Datepicker.prototype, {
934934
else {
935935
this._hideDatepicker();
936936
this._lastInput = inst.input[0];
937-
inst.input.focus(); // restore focus
937+
if (typeof(inst.input[0]) != 'object')
938+
inst.input.focus(); // restore focus
938939
this._lastInput = null;
939940
}
940941
},

0 commit comments

Comments
 (0)