Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9958] IOS: TextArea does not fire click events.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-04-01T20:14:30.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sSprint 2012-15 API, Release 3.1.0
ComponentsiOS
Labelsapi, module_textarea, parity, qe-testadded
ReporterVishal Duggal
AssigneeVishal Duggal
Created2012-07-12T16:52:03.000+0000
Updated2013-04-01T20:14:30.000+0000

Description

TextArea seems to eat all touch events. Observed while testing TIMOB-8015 filed against master.

Comments

  1. Vishal Duggal 2012-07-17

    Test Case
       
       var window = Ti.UI.createWindow({backgroundColor: 'white'});
       
       var eventInfo = function(e){
       	Ti.API.info(e.type+' '+e.source);
       }
        
       var txt2 = Ti.UI.createTextArea({
           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);
       
       window.open();
       
  2. Vishal Duggal 2012-07-17

    Pull pending https://github.com/appcelerator/titanium_mobile/pull/2589
  3. Arthur Evans 2012-07-24

    Click events aren't documented as supported on any platforms, so we're going to need to open parity tickets and a doc bug: http://docs.appcelerator.com/titanium/2.1/#!/api/Titanium.UI.TextArea
  4. Neha Chhabra 2012-08-09

    Reopening to update labels
  5. Satyam Sekhri 2012-08-23

    Occurs on: Titanium Studio: 2.1.2.201208201549 Titanium SDK: 2.1.2.v20120821160113 Device: iPad3 (v5.1) Fixed with SDK: 2.2.0.v20120808154112
  6. Satyam Sekhri 2013-02-14

    The Click event does not fire for Text Area. This is a regression. As the issue did not occur on 3.0.0 GA Tested On: Studio: 3.0.2.201302081641 SDK: 3.0.2.v20130207164659 Device: iPhone 4S (v5.1)
  7. Vishal Duggal 2013-02-14

    Note to QE: The difference in behavior you are seeing is due to the changes made for TIMOB-11866. Basically we moved the click event from the touchesBegan to touchesEnded/UITouchPhaseEnded section. Which means while previously the click event would fire immediately after the touchStart event it now fires after the touchEnd event. But for textArea (and I guess textField as well) the touchEnd field never fires (instead the touchCancel event fires). So you never see the click event. This is expected behavior.
  8. Olga Romero 2013-04-01

    Tested and verified an expected behavior, as per Vishal. Titanium Studio, build: 3.1.0.201303291358 Titanium SDK, build: 3.1.0.v20130331073351 Devices: iPad mini iOS 6.0 iPad 4 iOS 6.1.3 Test steps: 1. Touch the text area Actual result: [INFO] touchstart [object TiUITextArea] [INFO] focus [object TiUITextArea] [INFO] touchcancel [object TiUITextArea]

JSON Source