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

yishayw 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 4aaaaca  Default label value is "", but we don't want that to mean the 
first rb is selected by default.
     new 61a97e6  Merge branch 'develop' of 
https://gitbox.apache.org/repos/asf/royale-asjs into develop
4aaaaca is described below

commit 4aaaaca80bce42612ba72d18fb42233a14bc5460
Author: DESKTOP-RH4S838\Yishay <[email protected]>
AuthorDate: Fri Apr 3 12:44:02 2020 +0300

    Default label value is "", but we don't want that to mean the first rb
    is selected by default.
    
    Reference #790
---
 .../projects/MXRoyale/src/main/royale/mx/controls/RadioButtonGroup.as   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/RadioButtonGroup.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/RadioButtonGroup.as
index ec6b7b4..2c23f2e 100644
--- 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/RadioButtonGroup.as
+++ 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/RadioButtonGroup.as
@@ -360,7 +360,7 @@ public class RadioButtonGroup extends EventDispatcher
          {
              var radioButton:RadioButton = getRadioButtonAt(i);
              if (radioButton.value == value ||
-                 radioButton.label == value)
+                 value != "" && radioButton.label == value)
              {
                  changeSelection(i, false);
                  break;

Reply via email to