Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-13121

iOS: View click event fires twice when adding the listener in a callback from another event

    Details

      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

          Activity

            People

            • Assignee:
              vduggal Vishal Duggal (Inactive)
              Reporter:
              btran Betty Tran
              Reviewer:
              Sabil Rahim
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-15939
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code