Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Later
-
Adobe Flex SDK 4.1 (Release)
-
None
-
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)
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;
}
**/