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

Windows: eventListener not maintained when a list is filtered based off a search

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 6.0.0
    • Fix Version/s: Release 6.0.2
    • Component/s: Windows
    • Environment:

      OS: Microsoft Windows 10 Pro 10.0.14393
      Appc core: 6.0.0-69
      Appc NPM: 4.2.8-9
      Ti SDK: 6.0.0.v20161109075403

    • Story Points:
      5
    • Sprint:
      2017 Sprint 02 SDK

      Description

      Description

      This is a regression from 5.5.1.GA

      When a tableview is filtered based of a search performed via a searchbar eventListeners are not maintained

      var _window = Ti.UI.createWindow();
       
      var data = [{
          title: 'First Row',
          hasDetail: true
      }, {
          title: 'Second Row',
          hasDetail: true
      }, {
          title: 'Third Row',
          hasDetail: true
      }, {
          title: 'Forth Row',
          hasDetail: true
      }, {
          title: 'Fifth Row',
          hasDetail: true
      }];
       
      var search = Ti.UI.createSearchBar({
          top:0,
          returnKeyType: Ti.UI.RETURNKEY_DONE
      });
       
      var tableView = Ti.UI.createTableView({
          top:50,
          data: data,
          search: search
      });
       
      tableView.addEventListener('click', function(e) {
          alert('Click Event. index: ' + e.index + ', Title: ' + e.row.title);
      });
      _window.add(tableView);
       
      _window.open();
      

      Steps to reproduce
      1. Add the above code to an existing app.js and build for Windows Platform
      2. Search in the searchbar for something like 'third' and hit the return key
      3. Tap the row
      Actual result

      Alert is not shown

      Expected result

      Alert should be shown

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi
                Reporter:
                eharris Ewan Harris
                Reviewer:
                Gary Mathews
                Tester:
                Abir Mukherjee
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code