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 6cc82c4 mx radiobuttongroup was having a similar problem
6cc82c4 is described below
commit 6cc82c4fac3ba353ce14c8f12373ba05f121c639
Author: Alex Harui <[email protected]>
AuthorDate: Fri Feb 14 17:48:06 2020 -0800
mx radiobuttongroup was having a similar problem
---
.../MXRoyale/src/main/royale/mx/controls/RadioButtonGroup.as | 5 +++++
1 file changed, 5 insertions(+)
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 510f850..ec6b7b4 100644
---
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/RadioButtonGroup.as
+++
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/RadioButtonGroup.as
@@ -454,6 +454,11 @@ public class RadioButtonGroup extends EventDispatcher
if (_selectedValue != null)
selectedValue = _selectedValue;
+ // If this radio button is selected, then it becomes the selection
+ // for the group.
+ if (instance.selected == true)
+ selection = instance;
+
// dispatchEvent(new Event("numRadioButtonsChanged"));
}