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

Windows: Implement bubbleParent property

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 6.1.0, Release 6.1.1
    • Fix Version/s: Release 7.3.0
    • Component/s: Windows
    • Labels:
      None
    • Environment:

      Ti SDK: 6.1.1.v20170619143158
      Appc Core: 6.2.2
      Appc NPM: 4.2.9
      Lumia 550 10.0
      10.0 ws-local

    • Story Points:
      13
    • Sprint:
      2018 Sprint 05 SDK, 2017 Sprint 17 SDK, 2017 Sprint 25 SDK, 2017 Sprint 26 SDK, 2018 Sprint 01 SDK, 2018 Sprint 04 SDK, 2018 Sprint 06 SDK, 2018 Sprint 07 SDK, 2018 Sprint 08 SDK, 2018 Sprint 11 SDK

      Description

      When using the click event on a tableview, if the UI element clicked is a child of the tableview then the click event will not be fired

      var _window = Ti.UI.createWindow();
      var table = Ti.UI.createTableView({
          top: 0,
          height: Ti.UI.SIZE
      });
      var row = Ti.UI.createTableViewRow({
          width: Ti.UI.FILL,
          height: 64,
          backgroundColor: 'green'
      });
      var view = Ti.UI.createView({
          layout: "horizontal"
      });
      var data = [row];
      view.add(Ti.UI.createButton({
          height: 44,
          backgroundColor: "red",
          title: 'Click me'
      }));
      row.add(view);
      table.data = data;
      table.addEventListener("click", function(e) {
          // ### HERE the event object has differerent properties in 3.0 vs 2.1.3.
          // ex: missing rowData in 3.0!
          Ti.API.info('rowData is ' + JSON.stringify(e.rowData));
          rowdatalabel.setText('rowData is ' + JSON.stringify(e.rowData));
      });
      _window.add(table);
      var rowdatalabel = Ti.UI.createLabel({
          bottom: 80
      });
      _window.add(rowdatalabel);
      _window.open();
      

      Steps to reproduce
      1. Add the above to an existing app.js
      2. Build for a windows target
      3. Click the red button
      Actual

      Click event is not fired

      Expected

      Based off other platforms, click even should be fired

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi
                Reporter:
                eharris Ewan Harris
                Reviewer:
                Gary Mathews
                Tester:
                Samir Mohammed
              • Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Source Code