Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-15954

When the click event is triggered for a CheckBox, the selected property has not yet updated

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • Spark: CheckBox
    • 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";
      }

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: