Roo/bootstrap/RadioSet.js
authoredward <edward@roojs.com>
Fri, 17 Nov 2017 09:06:41 +0000 (17:06 +0800)
committeredward <edward@roojs.com>
Fri, 17 Nov 2017 09:06:41 +0000 (17:06 +0800)
Roo/bootstrap/RadioSet.js

index b5837f3..fda6699 100644 (file)
@@ -207,8 +207,8 @@ Roo.extend(Roo.bootstrap.RadioSet, Roo.bootstrap.Component,  {
     setValue : function(v)
     {
         this.value = v;
-        
         this.inputEl.dom.value = v;
+        this.validate();
         
     },
     
@@ -219,7 +219,8 @@ Roo.extend(Roo.bootstrap.RadioSet, Roo.bootstrap.Component,  {
             i.el.removeClass('checked');
         }, this);
         
-        this.setValue('');
+        this.setValue(this.originalValue);
+        this.validate();
     }
 
 });