[
https://issues.apache.org/jira/browse/FLEX-33814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Justin Mclean resolved FLEX-33814.
----------------------------------
Resolution: Fixed
Fix Version/s: Apache Flex 4.12.0
Checked into develop.
> PopUpMenuButton's menuClickHandler() should be protected
> --------------------------------------------------------
>
> Key: FLEX-33814
> URL: https://issues.apache.org/jira/browse/FLEX-33814
> Project: Apache Flex
> Issue Type: Improvement
> Components: mx: PopUpMenuButton
> Reporter: Stephan Plath
> Assignee: Justin Mclean
> Priority: Trivial
> Labels: easyfix
> Fix For: Apache Flex 4.12.0
>
> Original Estimate: 5m
> Remaining Estimate: 5m
>
> The menuClickHandler method is private so I have no chance to override the
> behaviour if the button is clicked.
> The default behaviour could be unwanted if I set openAlways to true. It might
> be also a good idea to add a property which allows to toggle this behaviour
> (something like "alwaysTriggerItemClickOnButtonClick"), but at first it would
> be helpful to make menuClickHandler protected so I can write a custom
> component which overrides this method.
> If I could override it then I could write something like this:
> override protected function menuClickHandler(event:MouseEvent):void
> {
> if (!openAlways)
> super.menuClickHandler(event);
> }
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)