[TIMOB-10020] iOS: Textfields are editable even when editable is set to false.
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Low |
| Status | Closed |
| Resolution | Duplicate |
| Resolution Date | 2012-07-18T11:39:22.000+0000 |
| Affected Version/s | Release 2.1.0 |
| Fix Version/s | n/a |
| Components | iOS |
| Labels | api |
| Reporter | Joel Koett |
| Assignee | Neeraj Gupta |
| Created | 2012-07-13T15:13:13.000+0000 |
| Updated | 2017-03-09T21:28:41.000+0000 |
Description
Problem
When the editable property is set to false, the text field can still be edited.Code to reproduce
var win = Ti.UI.createWindow({
backgroundColor: 'pink'
});
win.open();
var textField = Ti.UI.createTextField({
color: '#336699',
height: 60,
top: 10,
left: 10,
width: 250,
borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED,
editable: false,
value: 'hello'
});
win.add(textField);
Current workaround: textField.addEventListener('focus', function(e) { e.source.blur(); });
Duplicate of TIMOB-877.
Closing ticket as duplicate.