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

Maurice Amsellem commented on FLEX-34124:
-----------------------------------------

IMO, the test in DropDownController is hazardous:

        if (target is IUIComponent && (target as 
IUIComponent).document.hostComponent is DropDownList)

Because only spark skins have hostComponent property, not the host component 
(ie views.TestView).

On the other hand, since hostComponent does not draw anything (delegated to the 
skin) , the event target should not be on the host component.

Justin, what do you think?
                

> 1069 error when try to close a Callout by clicking outside the component
> ------------------------------------------------------------------------
>
>                 Key: FLEX-34124
>                 URL: https://issues.apache.org/jira/browse/FLEX-34124
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Mobile: Callout / CalloutButton
>    Affects Versions: Apache Flex 4.12.0
>            Reporter: David Harrburger
>         Attachments: CalloutButtonError_mobile_Flex-4.12RC12.fxp
>
>
> Hi
> This is my first bug report here so please let me know if I ake something 
> wrong.
> Steps to reproduce :
>  - Create a new flex mobile project
>  - Add a callout button (with ou without any component)
>  - Run the application and click the CalloutButton.
>  - Now click somewhere : a 1069 error is returned
> It  seems to be related to [FLEX-34088]  CalloutButton with Dropdown :
> ReferenceError: Error #1069: Property hostComponent not found on 
> views.TestView and there is no default value.
>       at 
> spark.components.supportClasses::DropDownController/http://www.adobe.com/2006/flex/mx/internal::systemManager_mouseDownHandler()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/spark/src/spark/components/supportClasses/DropDownController.as:611]
>       at flash.events::EventDispatcher/dispatchEventFunction()
>       at flash.events::EventDispatcher/dispatchEvent()
>       at 
> mx.core::UIComponent/dispatchEvent()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/framework/src/mx/core/UIComponent.as:13682]
>       at 
> mx.managers::SystemManager/mouseEventHandler()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/framework/src/mx/managers/SystemManager.as:2926]
> (PS : sorry for my very bad English...)
> (PS 2 : I didn't find how attach a simple test project...really sorry...)



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

Reply via email to