Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28536] iOS: TableView maintains search view focus after close

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2021-09-21T19:24:31.000+0000
Affected Version/sRelease 10.0.1
Fix Version/sRelease 10.1.0
ComponentsiOS
LabelsNavigationWindow, TableView, ios, regression, searchbar
ReporterGary Mathews
AssigneeGary Mathews
Created2021-09-16T18:20:15.000+0000
Updated2021-09-21T19:24:31.000+0000

Description

- TableView retains search focus when window closes, preventing touch events *TEST CASE*
const win_a = Titanium.UI.createWindow({ title: 'Window A' });
const row = Ti.UI.createTableViewRow({ title: 'Open Window B' });
const table_a = Ti.UI.createTableView({ data: [ row ] });
const nav = Titanium.UI.createNavigationWindow({ window: win_a });

row.addEventListener('click', e => {
    const win_b = Ti.UI.createWindow({ title: 'Window B' });
    const table_b = Ti.UI.createTableView({
        search: Ti.UI.createSearchBar(),
        data: [ Ti.UI.createTableViewRow({ title: 'Focus search then navigate back' }) ]
    });

    win_b.add(table_b);
    nav.openWindow(win_b);
});

win_a.add(table_a);
nav.open();

Comments

  1. Gary Mathews 2021-09-16

    master: https://github.com/appcelerator/titanium_mobile/pull/13072

JSON Source