[TIMOB-24003] [Android] Textfield with editable false doesn't trigger click event
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2016-12-01T14:57:47.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | android |
Reporter | Baharroth |
Assignee | Gary Mathews |
Created | 2016-09-26T15:03:29.000+0000 |
Updated | 2017-03-20T22:26:38.000+0000 |
Description
On Android with SDK > 5.4 (because there is no bug with SDK < 5.3)
Textfield with editable false doesn't trigger click event
So, even if the textfield is not editable, it should trigger the click event ?
var textField = Ti.UI.createTextField({
editable : true,
borderStyle : Ti.UI.INPUT_BORDERSTYLE_ROUNDED,
color : '#336699',
top : 10,
left : 10,
width : 250,
height : 60,
hintText : 'click'
});
textField.addEventListener('click', function(e) {
alert('coucou');
});
Fixed by https://github.com/appcelerator/titanium_mobile/pull/8533
Duplicate of TIMOB-24052
Closing ticket as duplicate.