Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25463

Windows: Incorrect event's source.id when in separate controller

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 6.2.2, Release 6.2.1
    • Fix Version/s: Release 7.0.0
    • Component/s: Windows
    • Labels:
      None
    • Environment:
    • Story Points:
      5
    • Sprint:
      2017 Sprint 24 SDK

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi
                Reporter:
                rramirez Ricardo Ramirez
                Reviewer:
                Gary Mathews
                Tester:
                Samir Mohammed
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-5933
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code