Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-17883

change event is not fired for FxRadioButtonGroup when state is changed and FxRadioButton is removed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • Spark: RadioButton
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Compile & run:
      <?xml version="1.0" encoding="utf-8"?>
      <FxApplication xmlns="http://ns.adobe.com/mxml/2009" xmlns:comps="*" creationComplete="init()">
      <layout>
      <VerticalLayout/>
      </layout>
      <Declarations>
      <FxRadioButtonGroup id="group1"/>
      </Declarations>
      <states>
      <State name="basicState" />
      <State name="executiveState" />
      </states>

      <Script>
      <![CDATA[
      private function changeHandle(e:Event):void

      { lbl.text=group1.selectedValue.toString(); }

      private function init():void

      { group1.addEventListener(Event.CHANGE, changeHandle); }

      ]]
      >
      </Script>
      <FxButton label="1. go to sg basic state" click="currentState='basicState'" />
      <FxButton label="2. go to sg executiveState" click="currentState='executiveState'" />

      <FxRadioButton id="rb1" group="

      {group1}" label="5:00pm" includeIn="basicState,executiveState" />
      <FxRadioButton id="rb2" group="{group1}

      " label="6:00pm" includeIn="basicState,executiveState" />
      <FxRadioButton id="rb3" group="

      {group1}" label="7:00pm (Executives only)" includeIn="executiveState" />
      <FxRadioButton id="rb4" group="{group1}

      " label="8:00pm" includeIn="basicState,executiveState" />
      <FxRadioButton id="rb5" group="

      {group1}

      " label="9:00pm" includeIn="basicState,executiveState" />

      <Label id="lbl" />

      </FxApplication>

      2.Click "go to sg executiveState" button. Notice 7:00pm (Executives only) RadioButton appears
      3. Select the 7:00pm (Executives only) button. Notice the label updates appropriately
      4. Click the "go to sg basic state" button.

      Actual Results:
      Label still reads 7:00pm (Executives only). No change event fired.

      Expected Results:
      change event should fire.

      Workaround (if any):

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: