initialize date if not already done when picking year
[roojs1] / roojs-bootstrap-debug.js
index b1fadd9..f547fb4 100644 (file)
@@ -21954,6 +21954,9 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input,  {
                 break;
             case 'span':
                 if (className.indexOf('disabled') < 0) {
+                   if (!this.viewDate) {
+                       this.viewDate = new Date();
+                   }
                     this.viewDate.setUTCDate(1);
                     if (className.indexOf('month') > -1) {
                         this.viewDate.setUTCMonth(Roo.bootstrap.DateField.dates[this.language].monthsShort.indexOf(html));