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

RadioButton retains mouse and keyboard events when disabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK 3.0 (Release)
    • None
    • mx: RadioButton
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Browser: Internet Explorer 7.x
      Language Found: English

    Description

      Steps to reproduce:
      1. Open attached application file "RadioButtonTest.mxml"
      2. Run the application
      3. Click on the disabled radio button, notice that alert is displayed indicating that the click event was handled for the disabled radio button
      4. Press any key on the keyboard, notice that the alert is displayed indicating that the keydown event was handled for the disabled radio button
      5. Repeat steps 3 and 4 on the button and notice no alerts

      Actual Results:
      RadioButton is dispatching mouse and keyboard events even when enabled property is false

      Expected Results:
      Per documentation (http://livedocs.adobe.com/flex/3/html/help.html?content=controls_10.html): If a RadioButton control is not enabled, the RadioButton control and RadioButton group display the disabled appearance, regardless of user interaction. In the disabled state, all mouse or keyboard interaction is ignored.

      Problem:
      Override methods for events in RadioButton do not call the stopImmediatePropagation method to kill the event. RadioButton's override of clickHandler simply returns if enabled is false which does not prevent the event from completing its way thru the workflow. RadioButtons overrides for keyDownHandler and keyUpHandler don't even check for enabled.

      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: