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

DropDownList inside a PopUpAnchor doesn't close when another DropDownList is selected

    XMLWordPrintableJSON

Details

    Description

      Steps to reproduce:

      1. Run the attached code
      2. Open the first DropDownList
      3. Open the second DropDownList

      Actual behaviour: the first DropDownList is not closed.
      Expected behaviour: the first DropDownList is closed.
      Notes:

      • this is how it usually works when the components are not inside a PopUpAnchor
      • it relates to the DropDownLists not receiving the FocusEvent.FOCUS_OUT event when the other one is clicked, as ought to; DropDownListBase.focusOutHandler() is never called, even when the user clicks outside the application, whereas for DropDownLists on the stage the function is called for both these scenarios.
      • If we wrap the HGroup inside a TitleWindow, all works as expected. That's because TitleWindow implements IFocusManagerContainer and, as described in PopUpManager, "If the class implements IFocusManagerContainer, the window will have its own FocusManager so that, if the user uses the TAB key to navigate between controls, only the controls in the window will be accessed."
      • There is code in to keep the DropDownList open if the click was made on another DropDownList. This was implemented as a fix for FLEX-34088.

      Attachments

        1. Reproduce.mxml
          0.9 kB
          Mihai Chira

        Issue Links

          Activity

            People

              evolverine Mihai Chira
              evolverine Mihai Chira
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: