Skip to content

Commit 5f0a2f0

Browse files
marcneuwirthgnarf
authored andcommitted
Datepicker: Removing unnessecary typeof check. Fixed #6669 - Datepicker: _selectDate restores focus to non-object
1 parent ab627e0 commit 5f0a2f0

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
@@ -932,8 +932,7 @@ $.extend(Datepicker.prototype, {
932932
else {
933933
this._hideDatepicker();
934934
this._lastInput = inst.input[0];
935-
if (typeof(inst.input[0]) != 'object')
936-
inst.input.focus(); // restore focus
935+
inst.input.focus(); // restore focus
937936
this._lastInput = null;
938937
}
939938
},

0 commit comments

Comments
 (0)