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

ComboBox not closed when selecting an item from the dropdown list under certain conditions

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      The dropdown of a Spark ComboBox is not closed when an item is selected from the dropdown list if the selection triggers a binding that sets the "enabled" property of the ComboBox to "true" (even though the property was "true" before since otherwise one could not have opened the dropdown).

      This happens because the setter of the "enabled" property in the ComboBox class is directly inherited from SkinnableComponent, which calls invalidateSkinState() unconditionally (i.e. even if the new value of the "enabled" property is the same as the old value). I managed to work around the issue by overriding the setter of "enabled" in my custom ComboBox class and not calling the setter of the superclass if the old value is equal to the new one.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jmclean Justin Mclean
            ntamas Tamás Nepusz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment