Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Later
-
Adobe Flex SDK 4.1 (Release)
-
None
-
None
-
Affected OS(s): All OS Platforms
Language Found: English
Description
Found in 4.1.0.14607
Steps to reproduce:
1. Compile and run attached .MXML file.
2. Open the Spark DropDownList control.
3. Select "Five" from the DropDownList.
Actual Results:
The Alert displays, the DropDownList stays open, but the selectedItem changes (as you can see in the application control bar).
Expected Results:
The DropDownList should close.
Workaround (if any):
Use callLater() to slightly delay the Alert.show() call:
<fx:Script>
<![CDATA[
import mx.controls.Alert;
import spark.events.IndexChangeEvent;
protected function ddl_changeHandler(evt:IndexChangeEvent):void
{ callLater(showAlert); }protected function showAlert():void
{ Alert.show("You changed the DropDownList to " + ddl.selectedItem); } ]]
>
</fx:Script>