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

iOS: Search result view of List did not close when widow containing list view get closed.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 6.2.0
    • Fix Version/s: Release 6.3.0
    • Component/s: None
    • Labels:

      Description

      Open window containing list view with searchbar. Start searching . click any search item and close window in callback of item click. Search view remains.

      Test Case-

      var win1 = Titanium.UI.createWindow({
          backgroundColor: 'red',
          title: 'Red Window',
      });
       
      var win2 = Titanium.UI.createWindow({
      });
       
       var button = Titanium.UI.createButton({
          title: 'Open List Window',
      });
      var rows = [];
      for (var i = 0; i < 5; i++) {
          rows.push({ properties: { title: 'Row '+ i , backgroundColor: 'red', searchableText:'Row '+i}});
      }
       
      var sb = Ti.UI.createSearchBar();
      var ls = Ti.UI.createListSection({
        items: rows
      });
       
       var lv = Ti.UI.createListView({
          top : 0,
          sections: [ls],
          searchView: sb,
      });
       
      sb.addEventListener('return', function(e){
        sb.blur();
      });
      lv.addEventListener('itemclick', function(e) {
          Ti.API.info('click at index: ' + e.itemIndex);
          win2.close();
      }); 
      win2.add(lv);
       
      button.addEventListener('click', function(){
        win2.open();
      });
       
      win1.add(button);
      win1.open();
      

        Attachments

          Activity

            People

            • Assignee:
              vijaysingh Vijay Singh
              Reporter:
              vijaysingh Vijay Singh
              Reviewer:
              Hans Knöchel
              Tester:
              Eric Wieber
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code