Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13121] iOS: View click event fires twice when adding the listener in a callback from another event

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-12-06T22:12:18.000+0000
Affected Version/sRelease 3.0.0, Release 3.0.2, Release 3.1.0, Release 3.2.0
Fix Version/sRelease 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
ComponentsiOS
Labelsqe-testadded, regression, supportTeam
ReporterBetty Tran
AssigneeVishal Duggal
Created2013-03-19T21:01:33.000+0000
Updated2013-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 twice

Additional 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

FileDateSize
testcase.js2013-03-19T21:01:33.000+0000815

Comments

  1. Max Stepanov 2013-03-20

    PR https://github.com/appcelerator/titanium_mobile/pull/3996
  2. Shyam Bhadauria 2013-05-08

    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
  3. Wilson Luu 2013-12-06

    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.
  4. Vishal Duggal 2013-12-06

    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
  5. Pedro Enrique 2013-12-06

    Merged into master and 3.2.x
  6. Priya Agarwal 2013-12-09

    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.

JSON Source