Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-4385

events not bubbled up to view using addEventListener

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Needs more info
    • Affects Version/s: Appcelerator Studio 4.5.0
    • Component/s: Alloy
    • Labels:
    • Environment:

      Description

      If you addEventListener for 'click' on a view in the controller file it seems that some of the components in that view are not bubbling up events. The attached files below give you an example of this problem and can be used in a new project. If you click on the text you will notice the event is not triggered.

      If you use the onClick in the xml file then it works correctly. Sometimes you need to create views programmatically and I should be able to addEventListener and get all click events on all children.

      What changed in 5.4 that is causing addEventListener on a view to not get events for all sub components?

      This works fine in 5.2.0.

        Attachments

        1. index.js
          0.1 kB
        2. index.tss
          0.6 kB
        3. index.xml
          0.3 kB

          Activity

            People

            • Assignee:
              shossain Shak Hossain
              Reporter:
              cthomas Christy Thomas
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code