[TIMOB-13121] iOS: View click event fires twice when adding the listener in a callback from another event
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-12-06T22:12:18.000+0000 |
Affected Version/s | Release 3.0.0, Release 3.0.2, Release 3.1.0, Release 3.2.0 |
Fix Version/s | Release 3.1.0, 2013 Sprint 06 Core, 2013 Sprint 06, 2013 Sprint 25, 2013 Sprint 25 API, Release 3.2.0, Release 3.3.0 |
Components | iOS |
Labels | qe-testadded, regression, supportTeam |
Reporter | Betty Tran |
Assignee | Vishal Duggal |
Created | 2013-03-19T21:01:33.000+0000 |
Updated | 2013-12-10T16:29:13.000+0000 |
Description
Description
First we have a view inside a table view row. When we add a click event listener to the view in the callback of another click event (from another UI component), clicking the view will cause the event to fire twice.Code to Reproduce
Please see the attached file.Steps to Reproduce
1. Run app 2. Click "Approve" button once 3. Click on blue square once 4. See the console for the output of the click event firing twiceAdditional Notes
This issue did not occur in 2.1.4GA. The event does not fire twice if we add the event listener outside of the callback for clicking the "Approve" button. The event does not fire twice if we do not add the extra view (the "view" variable in the code) to the table row.Attachments
File | Date | Size |
---|---|---|
testcase.js | 2013-03-19T21:01:33.000+0000 | 815 |
PR https://github.com/appcelerator/titanium_mobile/pull/3996
Now the click event is firing once.Verified on below environment: SDK - 3.1.0.GA Appcelerator studio - 3.1.1.201305031846 Device - 6.0 iOS Simulator
Reopening ticket. This bug is occurring on: SDK build: 3.2.0.v20131205152445 CLI: 3.2.0-beta Alloy: 1.3.0-beta Device: iphone 5 (7.0.2), iphone 4s (6.0.1) Also, this is a regression from SDK 3.1.3.GA; this does not occur with the GA stack.
Pull pending against master https://github.com/appcelerator/titanium_mobile/pull/5079 Backport to 3_2_X https://github.com/appcelerator/titanium_mobile/pull/5082
Merged into master and 3.2.x
Verified the issue on test Environment: Appcelerator Studio: 3.2.0.201312081316 SDK:3.2.0.v20131208204843 alloy: 1.3.0-beta acs: 1.0.10 npm: 1.3.2 titanium: 3.2.0-beta titanium-code-processor: 1.1.0-beta Xcode:5.0.2 OS: Mac OSX 10.9 Device: iphone5(V7.0.4),Google Nexus7(v4.3) Working as expected.View Click event fires only once. Hence closing as working fine.