[TIMOB-26013] TextArea: Cursor should go to beginning of the text when editable is false
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | None |
Status | Closed |
Resolution | Not Our Bug |
Resolution Date | 2018-05-04T14:01:07.000+0000 |
Affected Version/s | Release 7.1.1 |
Fix Version/s | n/a |
Components | Android, iOS |
Labels | n/a |
Reporter | Shuo Liang |
Assignee | Unknown |
Created | 2018-05-04T11:07:36.000+0000 |
Updated | 2018-08-06T17:52:10.000+0000 |
Description
For now, if we set value to textArea by coding, the cursor will go to the end of the text value. But if the content is more than the height of the text area, you will have to scroll up to read the top content. This is very inconvenience. Specially, when customer just want to make the textArea as a read only area.
We should consider with the following improvement. Like if editable property is false, then the curser should go to the beginning of content. If editable property is true, we keep the current behaviour.
I am afraid this is the native behavior. What we could propose is using
textArea.setSelection(0, 0)
which "selects" the text from position 0 to position 0, setting the cursor to the beginning.Closing as "not our bug". If you disagree, please reopen.