Roo/form/MonthField.js
authorChris <chris@roojs.com>
Thu, 18 Oct 2012 08:51:50 +0000 (16:51 +0800)
committerChris <chris@roojs.com>
Thu, 18 Oct 2012 08:51:50 +0000 (16:51 +0800)
Roo/form/MonthField.js

index 726f1cf..54a1b62 100644 (file)
@@ -318,10 +318,10 @@ dateField.setValue('2006-5-4');
         this.menu.on(Roo.apply({}, this.menuListeners, {
             scope:this
         }));
-        this.menu.picker.showMonthPicker();
-        this.menu.picker.setValue(this.getValue() || new Date());
         
+        this.menu.picker.setValue(this.getValue() || new Date());
         
+        this.menu.picker.showMonthPicker();
         
         this.menu.show(this.el, "tl-bl?");
     },