Fix #6465 - drag drop for cards
[roojs1] / Roo / bootstrap / Radio.js
index e184b40..cddcdd1 100644 (file)
@@ -52,9 +52,11 @@ Roo.extend(Roo.bootstrap.Radio, Roo.bootstrap.Component, {
         
     },
     
-    onClick : function()
+    onClick : function(e)
     {
-        this.setChecked(true);
+        if(this.parent().fireEvent('click', this.parent(), this, e) !== false){
+            this.setChecked(true);
+        }
     },
     
     setChecked : function(state, suppressEvent)
@@ -68,7 +70,7 @@ Roo.extend(Roo.bootstrap.Radio, Roo.bootstrap.Component, {
         this.boxLabel = v;
         
         if(this.rendered){
-            this.el.select('label.box-label',true).dom.innerHTML = (v === null || v === undefined ? '' : v);
+            this.el.select('label.box-label',true).first().dom.innerHTML = (v === null || v === undefined ? '' : v);
         }
     }