[TIMOB-12667] Mobile Web: Event Bubbling Regression
GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-03-11T02:10:36.000+0000 |
Affected Version/s | Release 3.0.2, Release 3.1.0 |
Fix Version/s | Release 3.1.0, 2013 Sprint 05 JS, 2013 Sprint 05 |
Components | MobileWeb |
Labels | qe-port |
Reporter | Jamie Buckley |
Assignee | Bryan Hughes |
Created | 2013-02-11T23:48:37.000+0000 |
Updated | 2013-03-13T04:08:25.000+0000 |
Description
Event bubbling on 3.0.2/latest 3.1 is broken. In the 3.0GA, when event bubbles, event.source contains actual widget that generates the event. In the 3.0.2, event.source it points to the parent widget which makes it useless.
The attached project demonstrates the problem. A parent view is created which contains a single label. A click event listener is set up on the parent view. When you click the label, event bubbles to the parent view. In the 3.0GA, event.source point to the label which has been used to turn border to red. However, in the 3.0.2RC, it points to parent view. So there is no way to tell which object has actually fired the event.
Attachments
This is critical for customer.
@Bryan, thoughts?
@Ingo I thought that was working properly when we implemented support for the bubbling properties...maybe some edge case that was missed.
Pull Request: https://github.com/appcelerator/titanium_mobile/pull/3950
Environment used for verification - Titanium SDK: 3.1.0.v20130311192922 Titanium Studio:3.0.2.201302151605