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

Cannot input text to TextArea if you set editable=true before setting enabled=true.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Later
    • Adobe Flex SDK 4.1 (Release)
    • None
    • mx: TextArea
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Run attached sample file.
      2. Click "Toggle editable" button to set editable=false in TextArea control.
      3. Click "Toggle enabled" button to set enabled=false in TextArea control.
      4. Click "Toggle editable" button to set editable=true in TextArea control.
      5. Click "Toggle enabled" button to set enabled= true in TextArea control.
      6. Type into TextArea control.

      Actual Results:
      Cannot input text.

      Expected Results:
      TextArea control should allow user input.

      Workaround (if any):
      Set editable=true after setting enabled=true.

      This issue can be reproduced in SDK 3.2, 3.5 and 4.0. It doesn't occur in TextInput control. It seems that the process of TextArea#commitProperties() is different from that of TextInput.

      /** snippet of TextArea#commitProperties()
      if (editableChanged)

      { textField.type = _editable && enabled ? TextFieldType.INPUT : TextFieldType.DYNAMIC; editableChanged = false; }

      if (enabledChanged)

      { textField.enabled = enabled; enabledChanged = false; }

      **/

      /** snippet of TextInput#commitProperties()
      if (enabledChanged || editableChanged)
      {
      textField.type = enabled && _editable ?
      TextFieldType.INPUT :
      TextFieldType.DYNAMIC;

      if (enabledChanged)

      { if (textField.enabled != enabled) textField.enabled = enabled; enabledChanged = false; }

      selectableChanged = true;
      editableChanged = false;
      }
      **/

      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: