This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new d0ee351  have to change group selection as well on click.  Should fix 
#711
d0ee351 is described below

commit d0ee351726ed72f8d52daeedb144182cf02f5e67
Author: Alex Harui <[email protected]>
AuthorDate: Mon Feb 10 23:39:53 2020 -0800

    have to change group selection as well on click.  Should fix #711
---
 .../src/main/royale/spark/components/RadioButton.as          | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/RadioButton.as
 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/RadioButton.as
index 328d79e..26a917e 100644
--- 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/RadioButton.as
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/RadioButton.as
@@ -233,7 +233,6 @@ public class RadioButton extends ToggleButtonBase
     {
         rbicon = new RadioButtonIcon()
         rbicon.id = '_radio_' + RadioButton.radioCounter++;
-        rbicon.element.addEventListener("change", rbChangeHandler);
         rbicon.element.addEventListener("click", rbClickHandler);
         
         textNode = document.createTextNode('') as window.Text;
@@ -254,22 +253,13 @@ public class RadioButton extends ToggleButtonBase
      * @royaleignorecoercion HTMLInputElement
      */
     COMPILE::JS
-    private function rbChangeHandler(event:Event):void
+    private function rbClickHandler(event:Event):void
     {
         selected = (rbicon.element as HTMLInputElement).checked;
         if (group)
             group.setSelection(this);
     }
     
-    /**
-     * @royaleignorecoercion HTMLInputElement
-     */
-    COMPILE::JS
-    private function rbClickHandler(event:Event):void
-    {
-        selected = (rbicon.element as HTMLInputElement).checked;
-    }
-    
     COMPILE::JS
     override public function set id(value:String):void
     {

Reply via email to