Roo/bootstrap/MonthField.js
authorEdward <edward@roojs.com>
Mon, 31 Aug 2015 05:31:33 +0000 (13:31 +0800)
committerEdward <edward@roojs.com>
Mon, 31 Aug 2015 05:31:33 +0000 (13:31 +0800)
Roo/bootstrap/MonthField.js

index 48590e4..bbc7dbb 100644 (file)
@@ -125,6 +125,9 @@ Roo.extend(Roo.bootstrap.MonthField, Roo.bootstrap.Input,  {
         if(nodeName.toLowerCase() != 'span' || className.indexOf('disabled') > -1 || className.indexOf('month') == -1){
             return;
         }
+        
+        this.selected = target;
+        
         var v = Roo.bootstrap.MonthField.dates[this.language].months[Roo.bootstrap.MonthField.dates[this.language].monthsShort.indexOf(html)];
                 
         this.setValue(v);