Skip to content
Permalink
Browse files
Datepicker: Removing unnessecary typeof check. Fixed #6669 - Datepick…
…er: _selectDate restores focus to non-object
  • Loading branch information
marcneuwirth authored and gnarf committed Jun 27, 2011
1 parent 928abeb commit 86a09aeb332851971bc2b2ce6bbf4d4292b12020
Showing with 1 addition and 2 deletions.
  1. +1 −2 ui/jquery.ui.datepicker.js
@@ -919,8 +919,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;
}
},

0 comments on commit 86a09ae

Please sign in to comment.