Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12667] Mobile Web: Event Bubbling Regression

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-03-11T02:10:36.000+0000
Affected Version/sRelease 3.0.2, Release 3.1.0
Fix Version/sRelease 3.1.0, 2013 Sprint 05 JS, 2013 Sprint 05
ComponentsMobileWeb
Labelsqe-port
ReporterJamie Buckley
AssigneeBryan Hughes
Created2013-02-11T23:48:37.000+0000
Updated2013-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

FileDateSize
EventBubblingCase.zip2013-02-11T23:49:26.000+0000675193

Comments

  1. Shak Hossain 2013-02-23

    This is critical for customer.
  2. Ingo Muschenetz 2013-02-25

    @Bryan, thoughts?
  3. Bryan Hughes 2013-02-25

    @Ingo I thought that was working properly when we implemented support for the bubbling properties...maybe some edge case that was missed.
  4. Bryan Hughes 2013-03-09

    Pull Request: https://github.com/appcelerator/titanium_mobile/pull/3950
  5. Shyam Bhadauria 2013-03-12

    Environment used for verification - Titanium SDK: 3.1.0.v20130311192922 Titanium  Studio:3.0.2.201302151605

JSON Source