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 44a084f handle group update when programmatically setting selection
on radiobutton
44a084f is described below
commit 44a084f4439d353179c88f537a1cd59d13275476
Author: Alex Harui <[email protected]>
AuthorDate: Thu Feb 13 23:22:00 2020 -0800
handle group update when programmatically setting selection on radiobutton
---
.../SparkRoyale/src/main/royale/spark/components/RadioButton.as | 2 ++
1 file changed, 2 insertions(+)
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 71f685d..1934e65 100644
---
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/RadioButton.as
+++
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/RadioButton.as
@@ -290,6 +290,8 @@ public class RadioButton extends ToggleButtonBase
{
(rbicon.element as HTMLInputElement).checked = value;
}
+ if (value && group)
+ group.setSelection(this);
dispatchEvent(new Event("selectedChanged"));
}