Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2513] Labels inside a TableViewRow fire click event twice the second time a window in memory is opened

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-04-03T23:08:09.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsbubble, bubbleParent, defect, events, ios, iphone
ReporterMichael Belkin
AssigneeMauro Parra-Miranda
Created2013-01-16T16:26:05.000+0000
Updated2016-03-08T07:41:34.000+0000

Description

Steps to reproduce: 1. Create a new application with the attached files 2. Launch the application 3. Tap "open window" 4. Tap the "Row 1" label in the resulting window *You should see one alert saying "click[object TiUiLabel]" 5. Tap the "back" button 6. Tap "open window" button again 7. Tap the "Row 1" label *You'll now see two identical alerts saying "click[object TiUiLabel]" Expected Behavior: *Label should only fire click event once Actual Behavior: *Label fires click event twice on second opening of the window Notes: *The is severe because it can cause errors with window navigation. For example, if clicking the label is supposed to open a window, the open event is fired twice in rapid succession. When the user then closes the window, two close events on the same window are called and the result will be a black screen that can only be escaped by force quitting the application. This is a blocking issue for our app and many users have reported this error. *This is a regression in Ti 3.0+. The same test case in 2.1.4 produces the expected behavior

Attachments

FileDateSize
app.js2013-01-16T16:26:05.000+0000307
testWindow.js2013-01-16T16:26:05.000+00001012

Comments

  1. Jamie Buckley 2013-04-03

    Tested with 3.1.0 click event was only firing once when following repro steps.
  2. Michael Belkin 2013-04-11

    Were you able to verify this issue in 3.0 to confirm it was resolved in 3.1?

JSON Source