Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25463] Windows: Incorrect event's source.id when in separate controller

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2017-11-21T03:19:46.000+0000
Affected Version/sRelease 6.2.2, Release 6.2.1
Fix Version/sRelease 7.0.0
ComponentsWindows
Labelsn/a
Reporter Ricardo Ramirez
AssigneeKota Iguchi
Created2017-10-31T19:24:07.000+0000
Updated2018-08-06T17:49:29.000+0000

Description

Issue Description

Issue: When wrapping view(s) within an outer view, and a click event listener is added to that outer view, and all of this is in a standalone alloy controller, the feedback gotten from the click event object in regards to what the source of the click is, is incorrect. SAMPLE PROJECT: https://propelics.box.com/s/o7uaqpvwwtd41g71gurdgg9022obdjal STEPS TO REPRODUCE: 1.- Open and run sample project. Can be deployed with -T ws-local 2.- A window with two views will appear: one white with a smaller red view in within and one cyan with a smaller purple view in within. 3.- Click on the red inner view of the white view and observe the console output: the event object will print with a source.id = "moreButton", which is correct, as you'll can verify in the contents of index.xml. 4.- Now click on the purple inner view of the cyan view and observe the console output: the event object will print with a source.id = "siteTab", which is incorrect, as you can verify in the contents of smallerViewController.xml. As demonstrated, this is only reproducible in standalone alloy controllers. NOTE: Exact the same behavior happens with a Ti.UI.Button.

Comments

  1. Kota Iguchi 2017-11-09

    https://github.com/appcelerator/titanium_mobile_windows/pull/1156 Note: It turns out this issue is not specific to Alloy but occurs on classic app too.
  2. Kota Iguchi 2017-11-21

    Merged. Created TIMOB-25542 to track Win 10 Mobile issue.
  3. Eric Merriman 2018-08-06

    Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.

JSON Source