[TIMOB-27502] Android - touchEnabled on textField is not working - updating value in the controller - js
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 7.1.0, Release 8.2.1, Release 8.2.0 |
Fix Version/s | n/a |
Components | n/a |
Labels | alloy, android, api, engSchedule |
Reporter | Francisco Antonio Duran Ramirez |
Assignee | Unknown |
Created | 2019-09-04T20:48:52.000+0000 |
Updated | 2019-10-28T20:46:04.000+0000 |
Description
Hello. Good afternoon.
I noticed that when it is set in the tss file the property of touchEnabled with the value of false for a TextField, and then in the controller is modified that property to true, and after that I tried to click click on the TextField, but the keyboard it is not appearing in Android, but in iOS it is working fine.
XML :
<Alloy>
<Window class="container">
<Label id="label" onClick="doClick">Hello, World</Label>
<TextField id="txtText" />
</Window>
</Alloy>
JS:
function doClick(e) {
$.txtText.applyProperties({
touchEnabled : true
});
Ti.API.info(JSON.stringify($.txtText));
};
$.index.open();
TSS:
".container": {
backgroundColor:"white",
layout : "vertical"
}
"Label": {
width: Ti.UI.SIZE,
height: Ti.UI.SIZE,
color: "#000"
}
"#label": {
font: {
fontSize: 12
},
top : 50
}
"#txtText" : {
touchEnabled : false,
width : 200,
height : 80,
borderColor : "red"
}
I think for now, I had to implement the property of editable as a workaround, but I need to use touchEnabled property.
Please let me know whether you have any doubt or question.
Thanks, and best,
Francisco Antonio Duran Ramirez.
Hello. Good afternoon. Any news on this? Thanks, and best, Francisco Antonio Duran Ramirez.
[~antonioduran], Can you please test this issue on 8.2.0.GA and let us know the results?