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

Calling Alert.show() in DropDownList change event causes DropDownList to not get closed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Later
    • Adobe Flex SDK 4.1 (Release)
    • None
    • Spark: DropDownList
    • 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>

      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: