Roo/form/MonthField.js
authorAlan Knowles <alan@roojs.com>
Mon, 22 Oct 2012 11:14:08 +0000 (19:14 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 22 Oct 2012 11:14:08 +0000 (19:14 +0800)
Roo/form/MonthField.js

index 9d5589b..d7ae28a 100644 (file)
@@ -347,7 +347,7 @@ monthField.setValue('2006-5-4');
                     this.monthPicker.hide();
                 }else{
                     this.monthPicker.slideOut('t', {duration:.2});
-                    p.setValue(new Date(m.picker.mpSelYear, m.picker.mpSelMonth));
+                    p.setValue(new Date(m.picker.mpSelYear, m.picker.mpSelMonth, 1));
                     p.fireEvent("select", this, this.value);
                     m.hide();
                 }