Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
Adobe Flex SDK Previous
-
None
-
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1. Load the bugfile.
2. Click on the CheckBox. On the click event the value of the CheckBox's selected property will be printed in the TextArea.
Actual Results: When the CheckBox is selected, its value in the click event is false. When the CheckBox is not selected, the value is true in the click event.
Expected Results: In the click event, the CheckBox's selected property should be its true value.
Workaround (if any):
Delay the check for the selected property using the callLater() method (see attached workaround.mxml):
private function modifyCart(evt:MouseEvent):void {
callLater(delayedSelectedCheck, [evt]);
}
private function delayedSelectedCheck(evt:MouseEvent):void {
cartItems.text += String(evt.target.selected) + "\n";
}