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

iOS: search bar's showCancel property does not work when added to tableView.search

    Details

      Description

      Create a search bar with showCancel property set to false. It works fine and does not show 'cancel' button when it is added to the window. But when the searchBar is added to the table view the showCancel set to false does not work and shows the cancel button. This works fine on android.

      Steps to reproduce:

      1. Load the below app.js
      2. Try adding the search bar directly to window and see the result.
      3. Try adding it to the tableView and then see the result.

      Expected Result: Show cancel property should work fine in both cases.

      Actual Result: It does not work fine when search bar is added to the tableView.

      app.js:

      var win1 = Titanium.UI.createWindow({
      title : 'Tab 1',
      backgroundColor : '#0000'
      });
       
      var searchBar = Ti.UI.createSearchBar({
      barColor : '#000',
      showCancel : true,
      top : '0dp',
      borderStyle : Ti.UI.INPUT_BORDERSTYLE_ROUNDED
      });
       
      var tableView = Ti.UI.createTableView({
      backgroundColor : 'transparent',
      search : searchBar,
       
      filterAttribute : 'name'
      });
      win1.add(tableView);
      win1.open();
      

        Attachments

          Activity

            People

            • Assignee:
              ingo Ingo Muschenetz
              Reporter:
              aakkinepally Amuktha Akkinepally
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code