Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
Adobe Flex SDK 3.0 (Release)
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Browser: Internet Explorer 7.x
Language Found: English
Description
Steps to reproduce:
1. Compile and run attached bug file, or copy from below.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:RadioButtonGroup id="rbg" enabled="false" />
<mx:RadioButton group="
{rbg}" label="One" /><mx:RadioButton group="{rbg}
" label="Two" />
<mx:RadioButton group="
</mx:Application>
Actual Results:
Even though the <mx:RadioButtonGroup /> tag sets enabled to false, the radio buttons are still clickable.
Expected Results:
disabled radio buttons.
Workaround (if any):
Set the RadioButtonGroup's enabled property in the <mx:Application /> tag's creationComplete event handler, or wrap the radio buttons in a container and set the RadioButtonGRoup's enabled property in the container's creationComplete handler.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
creationComplete="//rbg.enabled = false;">
<mx:RadioButtonGroup id="rbg" enabled="false" />
<mx:VBox creationComplete="//rbg.enabled = false;">
<mx:RadioButton group="{rbg}
" label="One" />
<mx:RadioButton group="
<mx:RadioButton group="{rbg}
" label="Three" />
</mx:VBox>
</mx:Application>