[TIMOB-27871] Android: Setting TextField/TextArea "editable" to false should allow user to copy text to clipboard
| GitHub Issue | n/a |
|---|---|
| Type | Improvement |
| Priority | Low |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2020-08-11T14:52:12.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 9.1.0 |
| Components | Android |
| Labels | TextArea, TextField, android, clipboard, copy, editable, parity, read-only |
| Reporter | Joshua Quick |
| Assignee | Joshua Quick |
| Created | 2020-04-28T01:19:28.000+0000 |
| Updated | 2020-08-11T14:52:12.000+0000 |
Description
*Summary:*
When setting a
TextField/TextArea object's "editable" property to false, the end-user should be able to select the text and copy it to the clipboard. Allowing this is typically the main purpose of making a field read-only.
If the app developer doesn't want the text to be selectable, then disabling it via the "enabled" property would be better.
*Note:*
On iOS, we currently support copying text from a read-only TextArea.
Unfortunately, iOS' TextField does not support this. (It should though.)
PR (master): https://github.com/appcelerator/titanium_mobile/pull/11662
FR Passed, Waiting on Jenkins build.
merged to master for 9.1.0 target
*Closing ticket*. Improvement verified in SDK version
9.1.0.v20200810120239. *Test and other information can be found at:* https://github.com/appcelerator/titanium_mobile/pull/11662