[AC-158] Titanium.UI.TextField.setSelection does not select the text
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Cannot Reproduce |
Resolution Date | 2015-11-13T19:18:34.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | android |
Reporter | Peng Wang |
Assignee | Shak Hossain |
Created | 2015-06-10T07:57:44.000+0000 |
Updated | 2015-11-13T19:18:34.000+0000 |
Description
Titanium.UI.TextField.setSelection(2, 10) when TextField.value.length = 49
The cursor is set to position 2 retrieved from (TextField.selection.location). However, the TextField.selection.length is 0.
Tested this issue In SDK 4.1.1.GA, Android version 5.1.1, Google Nexus 7. TextField.setSelection is working as expected. CODE SAMPLE
You can try to use the latest SDK if you still run into this error.