Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24856] Windows: Implement bubbleParent property

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2018-05-23T23:57:27.000+0000
Affected Version/sRelease 6.1.0, Release 6.1.1
Fix Version/sRelease 7.3.0
ComponentsWindows
Labelsn/a
ReporterEwan Harris
AssigneeKota Iguchi
Created2017-06-20T10:25:48.000+0000
Updated2018-06-18T17:49:28.000+0000

Description

When using the click event on a tableview, if the UI element clicked is a child of the tableview then the click event will not be fired
var _window = Ti.UI.createWindow();
var table = Ti.UI.createTableView({
    top: 0,
    height: Ti.UI.SIZE
});
var row = Ti.UI.createTableViewRow({
    width: Ti.UI.FILL,
    height: 64,
    backgroundColor: 'green'
});
var view = Ti.UI.createView({
    layout: "horizontal"
});
var data = [row];
view.add(Ti.UI.createButton({
    height: 44,
    backgroundColor: "red",
    title: 'Click me'
}));
row.add(view);
table.data = data;
table.addEventListener("click", function(e) {
    // ### HERE the event object has differerent properties in 3.0 vs 2.1.3.
    // ex: missing rowData in 3.0!
    Ti.API.info('rowData is ' + JSON.stringify(e.rowData));
    rowdatalabel.setText('rowData is ' + JSON.stringify(e.rowData));
});
_window.add(table);
var rowdatalabel = Ti.UI.createLabel({
    bottom: 80
});
_window.add(rowdatalabel);
_window.open();

Steps to reproduce

Add the above to an existing app.js

Build for a windows target

Click the red button

Actual

Click event is not fired

Expected

Based off other platforms, click even should be fired

Comments

  1. Gary Mathews 2017-06-27

    master: https://github.com/appcelerator/titanium_mobile_windows/pull/1024
  2. Kota Iguchi 2017-12-05

    https://github.com/appcelerator/titanium_mobile_windows/pull/1161
  3. Samir Mohammed 2018-06-18

    Closing ticket. Fix can be seen in SDK Version: 7.3.0.v20180618062809 Test and other information can be found at: https://github.com/appcelerator/titanium_mobile_windows/pull/1161

JSON Source