Ti.UI.View
ignores
click
event.
*How to reproduce*
var window = Ti.UI.createWindow({ backgroundColor: 'green' });
var view = Ti.UI.createView({
borderRadius: 5,
borderColor: 'orange',
borderWidth: 10,
backgroundColor: 'blue',
width: '90%',
height: '90%',
});
view.addEventListener('click', function () {
Ti.API.info('View clicked');
});
window.addEventListener('click', function () {
Ti.API.info('Window clicked');
});
window.add(view);
window.open();
*Expected*
Clicking blue View should fire
click
event on both
window
and
view
.
[INFO] View clicked
[INFO] Window clicked
*Actual*
Only
[INFO] Window clicked
is displayed.
This issue is introduced by TIMOB-23374.
Merged to 5_3_X and master (5.4.0). I don't know status of 5.3.0 release, so the merge to 5_3_X may not make it in 5.3.0 release (but is lined up for a 5.3.1 if we do it).
Verified as fixed, Ti.UI.View now responds to click events. Tested on: Windows 10 Pro Windows Phone 10.0 (Microsoft Lumia 640 LTE) Appc Studio: 4.6.0.201605201934 Ti SDK: 5.3.0.v20160601101756 Appc NPM: 4.2.5-5 Appc Core: 5.3.0-46 Node: v4.4.4 *Closing Ticket.*