Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10024] IOS: TextField does not fire click events.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-08-09T04:57:50.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sSprint 2012-15 API, Release 3.0.0
ComponentsiOS
Labelsapi, module_tableview, parity, qe-testadded
ReporterVishal Duggal
AssigneeVishal Duggal
Created2012-07-18T12:03:08.000+0000
Updated2012-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();

Comments

  1. Vishal Duggal 2012-07-19

    Updating swipe event handler
  2. Vishal Duggal 2012-07-19

    Pull pending https://github.com/appcelerator/titanium_mobile/pull/2609
  3. Neha Chhabra 2012-08-09

    Reopening to update labels

JSON Source