Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18514] Android: TextField.editable will Return undefined if do not set editable value, works well in IOS

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, api
ReporterMelvin Chia
AssigneeUnknown
Created2015-02-05T04:09:33.000+0000
Updated2018-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();

Comments

  1. Melvin Chia 2015-02-05

    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();

JSON Source