mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00: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 86a09aeb33
.
This commit is contained in:
parent
1d266c1874
commit
7c15d3c19f
3
ui/jquery.ui.datepicker.js
vendored
3
ui/jquery.ui.datepicker.js
vendored
@ -930,7 +930,8 @@ $.extend(Datepicker.prototype, {
|
|||||||
else {
|
else {
|
||||||
this._hideDatepicker();
|
this._hideDatepicker();
|
||||||
this._lastInput = inst.input[0];
|
this._lastInput = inst.input[0];
|
||||||
inst.input.focus(); // restore focus
|
if (typeof(inst.input[0]) != 'object')
|
||||||
|
inst.input.focus(); // restore focus
|
||||||
this._lastInput = null;
|
this._lastInput = null;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user