]> source.dussan.org Git - jquery-ui.git/commitdiff
Fixed 3266. Datepicker is displayed when using "setDate" and "change" methods
authorKeith Wood <kbwood.au@gmail.com>
Sat, 20 Sep 2008 06:26:38 +0000 (06:26 +0000)
committerKeith Wood <kbwood.au@gmail.com>
Sat, 20 Sep 2008 06:26:38 +0000 (06:26 +0000)
ui/ui.datepicker.js

index abb778a83dc285e7e930b5aef463206d920a9303..70da2e560c962555187c3def02ff492d2438eb6c 100644 (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();
        },