[AC-4385] events not bubbled up to view using addEventListener
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2016-10-20T20:53:02.000+0000 |
Affected Version/s | Appcelerator Studio 4.5.0 |
Fix Version/s | n/a |
Components | Alloy |
Labels | defect |
Reporter | Christy Thomas |
Assignee | Shak Hossain |
Created | 2016-08-24T14:27:17.000+0000 |
Updated | 2016-10-20T20:53:02.000+0000 |
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
File | Date | Size |
index.js | 2016-08-24T13:57:06.000+0000 | 145 |
index.tss | 2016-08-24T13:57:24.000+0000 | 590 |
index.xml | 2016-08-24T13:57:15.000+0000 | 296 |
This is a blocking issue for us to move to using 5.4 from 5.2. We are wanting to move to 5.4 for the fixes TIMOB-23410 and TIMOB-23196, which we have been waiting for.
Hello, I con't reproduce the issue that you have mentioned. The event is triggered when clicked on the text. An alert pops up with "title_name". I am testing with SDK 5.4.0.GA and in iOS 9.2 iPhone simulator. Am I missing something? Reply wit your thoughts. Thanks.
I am using iPad 2 (v9.3) simulator. appc info :
Runtime output:
I tried this with 5.5.0.v20160909225604 and I still see the problem. Can you tell me your environment for testing this? I can easily reproduce with the example I provided and I do not get the alert when I click on 'Click On This Text'. What version of Xcode, OS, etc are you on? We are going to move to 5.5.1 (TIMOB-23884) to support iOS 10 and have to get this resolved.
Also this is my tiapp.xml file:
Hello, Can you try with latest SDK 5.5.1.GA and CLI? Thanks.