Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Adobe Flex SDK Previous
-
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):