Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27502] Android - touchEnabled on textField is not working - updating value in the controller - js

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 7.1.0, Release 8.2.1, Release 8.2.0
Fix Version/sn/a
Componentsn/a
Labelsalloy, android, api, engSchedule
ReporterFrancisco Antonio Duran Ramirez
AssigneeUnknown
Created2019-09-04T20:48:52.000+0000
Updated2019-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.

Comments

  1. Francisco Antonio Duran Ramirez 2019-09-11

    Hello. Good afternoon. Any news on this? Thanks, and best, Francisco Antonio Duran Ramirez.
  2. Michael Gangolf 2019-09-11

  3. Rakhi Mitro 2019-10-20

    [~antonioduran], Can you please test this issue on 8.2.0.GA and let us know the results?

JSON Source