[TIMOB-18514] Android: TextField.editable will Return undefined if do not set editable value, works well in IOS
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | android, api |
Reporter | Melvin Chia |
Assignee | Unknown |
Created | 2015-02-05T04:09:33.000+0000 |
Updated | 2018-02-28T19:55:43.000+0000 |
Description
Android does not return boolean editable status, same code works on iOS.
Actual result:
[INFO] : undefined
[INFO] : undefined
Correct result:
[INFO] : true
[INFO] : true
---> index.xml
Hello, World
---> index.js
function doClick(e) {
alert($.label.value);
Ti.API.info($.label.editable);
Ti.API.info($.label.getEditable());
}
$.index.open();
If editable is initialised in index.js beforehand, it works as intended on Android. Result: [INFO] : true [INFO] : true ---> index.js function doClick(e) { alert($.label.value); Ti.API.info($.label.editable); Ti.API.info($.label.getEditable()); } if ($.label.getEditable == undefined) { $.label.editable = true; } $.index.open();