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

change event fired even when selection isn't actually changed

    XMLWordPrintableJSON

Details

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

    Description

      Steps to reproduce:
      1. Add ToggleSwitch and add a change event handler to it.

      <?xml version="1.0" encoding="utf-8"?>
      <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView">
      <s:layout>
      <s:VerticalLayout gap="20" paddingBottom="20" paddingLeft="20" paddingRight="20"
      paddingTop="20"/>
      </s:layout>

      <s:ToggleSwitch change="ti.text='change event fired'" />

      <s:TextInput id="ti" />
      <s:Button label="Clear" click="ti.text=''"/>
      </s:View>

      2. Run the app in ADL or device.
      3. Drag the thumb of ToggleSwitch just little bit then release it. Do not go far beyond the mid point so ToggleSwitch's selection won't change.

      Actual Results: Change event handler called.

      Expected Results: Change event gets fired only when selection actually changed.

      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: