mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Datepicker: Removing unnessecary typeof check. Fixed #6669 - Datepicker: _selectDate restores focus to non-object
This commit is contained in:
parent
ab627e03a6
commit
5f0a2f01c4
3
ui/jquery.ui.datepicker.js
vendored
3
ui/jquery.ui.datepicker.js
vendored
@ -932,8 +932,7 @@ $.extend(Datepicker.prototype, {
|
||||
else {
|
||||
this._hideDatepicker();
|
||||
this._lastInput = inst.input[0];
|
||||
if (typeof(inst.input[0]) != 'object')
|
||||
inst.input.focus(); // restore focus
|
||||
inst.input.focus(); // restore focus
|
||||
this._lastInput = null;
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user