[TIMOB-24856] Windows: Implement bubbleParent property
| GitHub Issue | n/a |
|---|---|
| Type | Improvement |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2018-05-23T23:57:27.000+0000 |
| Affected Version/s | Release 6.1.0, Release 6.1.1 |
| Fix Version/s | Release 7.3.0 |
| Components | Windows |
| Labels | n/a |
| Reporter | Ewan Harris |
| Assignee | Kota Iguchi |
| Created | 2017-06-20T10:25:48.000+0000 |
| Updated | 2018-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();
master: https://github.com/appcelerator/titanium_mobile_windows/pull/1024
https://github.com/appcelerator/titanium_mobile_windows/pull/1161
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