[TIMOB-9958] IOS: TextArea does not fire click events.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-04-01T20:14:30.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | Sprint 2012-15 API, Release 3.1.0 |
Components | iOS |
Labels | api, module_textarea, parity, qe-testadded |
Reporter | Vishal Duggal |
Assignee | Vishal Duggal |
Created | 2012-07-12T16:52:03.000+0000 |
Updated | 2013-04-01T20:14:30.000+0000 |
Description
TextArea seems to eat all touch events. Observed while testing TIMOB-8015 filed against master.
Test Case
Pull pending https://github.com/appcelerator/titanium_mobile/pull/2589
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
Reopening to update labels
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
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)
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.
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]