Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25038] (Windows) When "SearchBar.showCancel" Is used and the "X" is pressed text is removed but not "X"

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2017-11-16T01:48:10.000+0000
Affected Version/sRelease 6.1.2
Fix Version/sRelease 7.0.0
ComponentsWindows
Labelsn/a
ReporterSamir Mohammed
AssigneeKota Iguchi
Created2017-07-31T21:39:11.000+0000
Updated2017-11-16T01:48:19.000+0000

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)

Comments

  1. Kota Iguchi 2017-08-22

    https://github.com/appcelerator/titanium_mobile_windows/pull/1081
  2. Abir Mukherjee 2017-11-16

    Passed FR! Using this environment: Node Version: 8.9.1 NPM Version: 5.5.1 Windows OS 10.0.14393 Appc CLI: 7.0.0-master.13 Appc CLI NPM: 4.2.11-2 Titanium SDK version: 7.0.0 w/artifacts from commit Appcelerator Studio vers 4.10.0 Windows Phone 10.0.15063

JSON Source