[TIMOB-10024] IOS: TextField does not fire click events.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-08-09T04:57:50.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | Sprint 2012-15 API, Release 3.0.0 |
Components | iOS |
Labels | api, module_tableview, parity, qe-testadded |
Reporter | Vishal Duggal |
Assignee | Vishal Duggal |
Created | 2012-07-18T12:03:08.000+0000 |
Updated | 2012-08-09T04:57:50.000+0000 |
Description
TextField seems to eat all touch events. Observed while testing TIMOB-9958, filed against master.
Test:
app.js
var window = Ti.UI.createWindow({backgroundColor: 'white'});
var eventInfo = function(e){
Ti.API.info(e.type+' '+e.source);
}
var txt2 = Ti.UI.createTextField({
top: '10',
left: '10',
right:'10',
height:'60',
color:'#336699',
boderWidth:2,
borderColor:'#555',
value: '',
scrollable:false
});
window.add(txt2);
var toggle = Ti.UI.createButton({
title:'Toggle Scollable',
top:100
})
toggle.addEventListener('click',function(e){
txt2.scrollable = !txt2.scrollable;
Ti.API.info(txt2.scrollable);
});
window.add(toggle);
txt2.addEventListener('focus',eventInfo);
txt2.addEventListener('blur',eventInfo);
txt2.addEventListener('click',eventInfo);
txt2.addEventListener('touchstart',eventInfo);
txt2.addEventListener('touchend',eventInfo);
txt2.addEventListener('touchmove',eventInfo);
txt2.addEventListener('touchcancel',eventInfo);
txt2.addEventListener('swipe', eventInfo);
txt2.addEventListener('pinch', eventInfo);
window.open();
Updating swipe event handler
Pull pending https://github.com/appcelerator/titanium_mobile/pull/2609
Reopening to update labels