flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tamás Nepusz (JIRA) <j...@apache.org>
Subject [jira] [Commented] (FLEX-34019) ComboBox not closed when selecting an item from the dropdown list under certain conditions
Date Fri, 03 Jan 2014 11:46:51 GMT

    [ https://issues.apache.org/jira/browse/FLEX-34019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13861457#comment-13861457
] 

Tamás Nepusz commented on FLEX-34019:
-------------------------------------

Awesome, thanks for the quick fix. Unfortunately I found that the same problem happens with
DropDownList as well (for the very same reasons) - shall I open a new issue for that?

> ComboBox not closed when selecting an item from the dropdown list under certain conditions
> ------------------------------------------------------------------------------------------
>
>                 Key: FLEX-34019
>                 URL: https://issues.apache.org/jira/browse/FLEX-34019
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: ComboBox
>    Affects Versions: Apache Flex 4.11.0
>            Reporter: Tamás Nepusz
>            Assignee: Justin Mclean
>            Priority: Minor
>              Labels: EasyFix, easytest
>             Fix For: Apache Flex 4.12.0
>
>         Attachments: ComboBoxBindigBugTest.mxml
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message