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

MobileWeb: TableView ignores clicks when sections are present

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: MobileWeb
    • Environment:

      Titanium SDK 3.5.0 alpha; development under OS/X; testing under iOS 8.1 simulator or (for MobileWeb) Apache and Google Chrome version 38.0.2125.111 (64-bit)

      Description

      Test code

      /*jslint node: true */
      "use strict";
      /*global Titanium */
       
      function rowClicked(e) {
          Titanium.API.trace("ROW CLICKED: e = " + JSON.stringify(e));
      }
       
      var with_sections = true,
          sectionOne = Titanium.UI.createTableViewSection({
              headerTitle: 'section_one'
          }),
          sectionTwo = Titanium.UI.createTableViewSection({
              headerTitle: 'section_two'
          }),
          tableview = Titanium.UI.createTableView({
              height: Titanium.UI.FILL,
              width: Titanium.UI.FILL,
              top: 0,
              showVerticalScrollIndicator: true,
              minRowHeight: 48,
          }),
          rowOne = Titanium.UI.createTableViewRow({
              title: 'row_one'
          }),
          rowTwo = Titanium.UI.createTableViewRow({
              title: 'row_two'
          }),
          win = Titanium.UI.createWindow({ backgroundColor:  '#fff' });
       
      if (with_sections) {
          sectionOne.add(rowOne);
          sectionTwo.add(rowTwo);
          tableview.setData([sectionOne, sectionTwo]);
      } else {
          tableview.setData([rowOne, rowTwo]);
      }
      tableview.addEventListener('click', rowClicked);
      win.add(tableview);
      win.open();
      

      Behaviour under iOS

      • with_sections = true: responds to row clicks, prints sensible e object
      • with_sections = false: responds to row clicks, prints sensible e object

      Behaviour under MobileWeb

      • with_sections = true: IGNORES row clicks
      • with_sections = false: responds to row clicks ALTHOUGH gives "Uncaught TypeError: Converting circular structure to JSON" error

        Attachments

          Activity

            People

            • Assignee:
              pinnamuri Praveen Innamuri (Inactive)
              Reporter:
              rudolf@pobox.com Rudolf Cardinal
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code