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

(Windows) When "SearchBar.showCancel" Is used and the "X" is pressed text is removed but not "X"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 6.1.2
    • Fix Version/s: Release 7.0.0
    • Component/s: Windows
    • Labels:
      None
    • Environment:
    • Story Points:
      3
    • Sprint:
      2017 Sprint 17 SDK, 2017 Sprint 22 SDK, 2017 Sprint 23 SDK

      Description

      When text is entered in to the search bar and you press "X" to delete the text the "X" remains even though the text has been removed.

      Test Steps:
      + Create a titanium project using 6.1.2.v20170727160839
      + Add the following code to the app.js

      var win = Ti.UI.createWindow({ backgroundColor: 'green', layout: 'vertical' });
      var search = Titanium.UI.createSearchBar({
          width: 350,
          height: 143,
          showCancel: true,
          top: 0
      });
      win.add(search);
      win.open();
      

      + Enter text in the search bar
      + Press "X"

      Actual result
      Text dissaperas but the "X" remains

      Expected result
      Text should disappear as well as the "X"

      Additional Issue
      When entering text the X only shows after the second character is entered, and only disappears after the hitting backspace again after removing the last character. (This only occurs on when showCancel: true, with default behaviour issue is not seen)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi
                Reporter:
                smohammed Samir Mohammed
                Reviewer:
                Gary Mathews
                Tester:
                Abir Mukherjee
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code