aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/jquery.ui.datepicker.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js
index 3b8caa59b..0b6fb2218 100644
--- a/ui/jquery.ui.datepicker.js
+++ b/ui/jquery.ui.datepicker.js
@@ -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;
}
},