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

Windows: Crash when using a SearchBar where the autosuggestions box is oriented above the UI element

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 6.1.0, Release 6.0.4, Release 6.1.1, Release 6.2.0
    • Fix Version/s: Release 6.2.0
    • Component/s: Windows
    • Labels:
      None
    • Environment:

      Ti SDK: 6.0.4.GA, 6.1.0.GA, 6.1.1.GA, 6.2.0.v20170717210803
      Lumia 550 10.0.15063
      Windows 10 Pro local

    • Story Points:
      3
    • Sprint:
      2017 Sprint 16 SDK

      Description

      Description

      When using a SearchBar if the list of suggestions will be oriented above (i.e. the searchbar is in the bottom half of the screen) the searchbar then the app will crash when entering a search term.

      This occurs when a SearchBar is added to a ListView or TableView

      Error is thrown on the clear call here https://github.com/appcelerator/titanium_mobile_windows/blob/66ccc0a080360d147dd2b59c748a075b87107233/Source/UI/src/SearchBar.cpp#L62

      var _window = Ti.UI.createWindow({ backgroundColor: 'green'});
      var searchBar = Ti.UI.createSearchBar();
       
      var data = [];
      for (var i = 0; i < 25; i++) {
          data.push({ title: `Row ${i}` });
      }
      var tableView = Ti.UI.createTableView({
          search: searchBar,
          data: data,
          top: '80%'
      });
      _window.add(tableView);
      _window.open()
      

      Steps to reproduce
      1. Add the above to an existing app.js and build for a Windows target
      2. Enter some text into the searchbar
      Actual

      App will throw the below error

      [ERROR] :  ----- Titanium Javascript Runtime Error -----
      [ERROR] :  In undefined: undefined,undefined
      [ERROR] :  Message: Uncaught Error: undefined
      

      Expected

      App should not throw an error search should function as normal

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              eharris Ewan Harris
              Reviewer:
              Kota Iguchi
              Tester:
              Samir Mohammed
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code