Details
-
Type:
Bug
-
Status: Closed
-
Priority:
High
-
Resolution: Fixed
-
Affects Version/s: Release 6.0.0
-
Fix Version/s: Release 6.0.2
-
Component/s: Windows
-
Labels:
-
Environment:
OS: Microsoft Windows 10 Pro 10.0.14393
Appc core: 6.0.0-69
Appc NPM: 4.2.8-9
Ti SDK: 6.0.0.v20161109075403
-
Story Points:5
-
Sprint:2017 Sprint 02 SDK
Description
Description
This is a regression from 5.5.1.GA
When a tableview is filtered based of a search performed via a searchbar eventListeners are not maintained
var _window = Ti.UI.createWindow();
|
|
var data = [{
|
title: 'First Row',
|
hasDetail: true
|
}, {
|
title: 'Second Row',
|
hasDetail: true
|
}, {
|
title: 'Third Row',
|
hasDetail: true
|
}, {
|
title: 'Forth Row',
|
hasDetail: true
|
}, {
|
title: 'Fifth Row',
|
hasDetail: true
|
}];
|
|
var search = Ti.UI.createSearchBar({
|
top:0,
|
returnKeyType: Ti.UI.RETURNKEY_DONE
|
});
|
|
var tableView = Ti.UI.createTableView({
|
top:50,
|
data: data,
|
search: search
|
});
|
|
tableView.addEventListener('click', function(e) {
|
alert('Click Event. index: ' + e.index + ', Title: ' + e.row.title);
|
});
|
_window.add(tableView);
|
|
_window.open();
|
Steps to reproduce
- Add the above code to an existing app.js and build for Windows Platform
- Search in the searchbar for something like 'third' and hit the return key
- Tap the row
Actual result
Alert is not shown
Expected result
Alert should be shown
Attachments
Issue Links
- relates to
-
TIMOB-24382 Windows: Adding same component multiple times should not cause error
-
- Closed
-
- Affects test execution of
-
TIMOB-22429 Ti.UI.TableView Test Suite: Titanium.UI.TableView Acceptance TIMOB-7030 (Titanium SDK/CLI/Release 6.0.0/Windows - Windows phone Tests) FAIL