mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
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 5f0a2f01c4.
This commit is contained in:
3
ui/jquery.ui.datepicker.js
vendored
3
ui/jquery.ui.datepicker.js
vendored
@@ -934,7 +934,8 @@ $.extend(Datepicker.prototype, {
|
||||
else {
|
||||
this._hideDatepicker();
|
||||
this._lastInput = inst.input[0];
|
||||
inst.input.focus(); // restore focus
|
||||
if (typeof(inst.input[0]) != 'object')
|
||||
inst.input.focus(); // restore focus
|
||||
this._lastInput = null;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user