Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23461] Windows: Ti.UI.View ignores click event

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2016-06-01T13:46:40.000+0000
Affected Version/sRelease 5.3.0
Fix Version/sRelease 5.4.0, Release 5.3.0
ComponentsWindows
Labelsqe-5.3.0
ReporterKota Iguchi
AssigneeKota Iguchi
Created2016-06-01T06:56:12.000+0000
Updated2016-06-01T20:47:27.000+0000

Description

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.

Comments

  1. Christopher Williams 2016-06-01

    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).
  2. Harry Bryant 2016-06-01

    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.*

JSON Source