Roo/form/Radio.js
authorAlan <alan@roojs.com>
Fri, 23 Sep 2022 03:26:10 +0000 (11:26 +0800)
committerAlan <alan@roojs.com>
Fri, 23 Sep 2022 03:26:10 +0000 (11:26 +0800)
Roo/form/Radio.js

index e0eec95..c2bc62d 100644 (file)
@@ -76,7 +76,9 @@ Roo.extend(Roo.form.Radio, Roo.form.Checkbox, {
         //    this.el.dom.defaultChecked = this.checked;
         //}
         this.setChecked(String(v) === String(this.inputValue), suppressEvent);
+        this.inSetChecked = true;
         this.el.dom.form[this.name] = v;
+        this.inSetChecked = false;
         //this.fireEvent("check", this, this.checked);
     },
     // private..
@@ -95,10 +97,9 @@ Roo.extend(Roo.form.Radio, Roo.form.Checkbox, {
         if(suppressEvent !== true){
             this.fireEvent('check', this, state);
         }
-        this.inSetChecked = true;
                 
                  
-        this.inSetChecked = false;
+       
         
     }