Skip to content

Commit 86a09ae

Browse files
marcneuwirthgnarf
authored andcommitted
Datepicker: Removing unnessecary typeof check. Fixed #6669 - Datepicker: _selectDate restores focus to non-object
1 parent 928abeb commit 86a09ae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ui/jquery.ui.datepicker.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -919,8 +919,7 @@ $.extend(Datepicker.prototype, {
919919
else {
920920
this._hideDatepicker();
921921
this._lastInput = inst.input[0];
922-
if (typeof(inst.input[0]) != 'object')
923-
inst.input.focus(); // restore focus
922+
inst.input.focus(); // restore focus
924923
this._lastInput = null;
925924
}
926925
},

0 commit comments

Comments
 (0)