Fixed 3266. Datepicker is displayed when using "setDate" and "change" methods

This commit is contained in:
Keith Wood 2008-09-20 06:26:38 +00:00
parent e51f56714b
commit aced92a6b4

View File

@ -599,7 +599,7 @@ $.extend(Datepicker.prototype, {
'Class']('ui-datepicker-multi');
inst.dpDiv[(this._get(inst, 'isRTL') ? 'add' : 'remove') +
'Class']('ui-datepicker-rtl');
if (inst.input && inst.input[0].type != 'hidden')
if (inst.input && inst.input[0].type != 'hidden' && inst == $.datepicker._curInst)
$(inst.input[0]).focus();
},