Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Apache Flex 4.11.0
-
None
-
None
-
None
-
Mobile Android
Description
open a popup element (a group with a button inside) as Modal
" PopUpManager.addPopUp(element, true)"
and click on the modal element or the button. The application will stop responding and will crash.
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" applicationDPI="160">
<fx:Script>
<![CDATA[
import mx.core.IFlexDisplayObject;
import mx.managers.PopUpManager;
import spark.components.Button;
protected function openPopup(asModal:Boolean):void
protected function closePopup(event:MouseEvent):void
{ lblMessage.text = "Popup closed !!!" PopUpManager.removePopUp(event.target as IFlexDisplayObject); grpContainer.enabled = true; }]]>
</fx:Script>
<s:VGroup id="grpContainer">
<s:Button label="Open as Modeless" click="openPopup(false)" />
<s:Button label="Open as Modal" click="openPopup(true)"/>
<s:Spacer height="100%" />
<s:Label id="lblMessage" />
</s:VGroup>
</s:Application>
Attachments
Issue Links
- duplicates
-
FLEX-33880 Popup modal blocks the application
- Resolved
- relates to
-
FLEX-33862 Modal Popup with Group or subclass root freezes the app
- Closed