Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25542] Windows: Incorrect event's source.id on Windows 10 Mobile

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2018-06-18T22:51:43.000+0000
Affected Version/sRelease 6.2.2, Release 6.2.1
Fix Version/sRelease 7.3.0
ComponentsWindows
Labelsn/a
Reporter Ricardo Ramirez
AssigneeKota Iguchi
Created2017-11-21T03:17:17.000+0000
Updated2018-06-20T15:49:31.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 2018-06-11

    https://github.com/appcelerator/titanium_mobile_windows/pull/1249
  2. Josh Longton 2018-06-18

    *FR* passed
  3. Josh Longton 2018-06-20

    *Closing ticket.* More information on steps and env can be found on the FR The fix is present in SDK: {noformat} 7.3.0.v20180618182516 {noformat}

JSON Source