Roo/form/MonthField.js
authorAlan Knowles <alan@roojs.com>
Mon, 22 Oct 2012 09:48:09 +0000 (17:48 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 22 Oct 2012 09:48:09 +0000 (17:48 +0800)
Roo/form/MonthField.js

index a370cee..da54543 100644 (file)
@@ -351,7 +351,7 @@ monthField.setValue('2006-5-4');
         
         Roo.log('picker set value');
         Roo.log(this.getValue());
-        p.setValue(this.parseDate(this.getValue()) || new Date());
+        p.setValue(this.value ? this.parseDate(this.getValue()) : new Date());
         m.show(this.el, 'tl-bl?');
         
         // hidden the day picker