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

IOS: Calling Ti.UI.TableView.updateRow causes that row to loose the click event

    Details

      Description

      Problem

      After calling Ti.UI.TableView.updateRow(), the click event no longer fires.

      Steps to reproduce

      1. Make a project with the below app.js.
      2. Click row 1
        • Notice that the click event fired by seeing the Ti.API.Info message "table row clicked"
      3. Click the 'update row 1' button
      4. Click row 1
        • Notice that the click event does not fire

      app.js

      var win1 = Ti.UI.createWindow({});
       
       
      var data = [{title:'Row 1'}, {title:'Row 2'}];
      var table = Ti.UI.createTableView({data:data});
      win1.add(table);
       
      table.addEventListener('click', TableClick);
       
      function TableClick(evt)
      {
        Ti.API.info('table row clicked');
      }
       
       
      var btn2 = Ti.UI.createButton({
        title:'update row 1',
        width:120,
        height:50,
        left:10,
        bottom:0
      });
      btn2.addEventListener('click',DoBtn2Click);
      win1.add(btn2);
       
      function DoBtn2Click()
      {
        table.updateRow(0, table.data[0].rows[0]);
      }
       
      win1.open();
      

        Attachments

          Activity

            People

            • Assignee:
              stephentramer Stephen Tramer
              Reporter:
              jlbarnhart Jon Barnhart
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration