[TIMOB-25038] (Windows) When "SearchBar.showCancel" Is used and the "X" is pressed text is removed but not "X"
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-11-16T01:48:10.000+0000 |
Affected Version/s | Release 6.1.2 |
Fix Version/s | Release 7.0.0 |
Components | Windows |
Labels | n/a |
Reporter | Samir Mohammed |
Assignee | Kota Iguchi |
Created | 2017-07-31T21:39:11.000+0000 |
Updated | 2017-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)
https://github.com/appcelerator/titanium_mobile_windows/pull/1081
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