Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26908] iOS: Focussed text-field freezes parent window

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2019-04-03T09:07:24.000+0000
Affected Version/sRelease 8.0.0
Fix Version/sRelease 8.0.1
ComponentsiOS
LabelsengSchedule, ios, regression, searchBar
ReporterHans Knöchel
AssigneeVijay Singh
Created2019-03-18T20:03:06.000+0000
Updated2019-04-03T09:07:24.000+0000

Description

Closing a window with a search being in focus, the parent window freezes. We haven't been able to provide an isolated test case, but it can be reproduced with a list-view + search-bar. I suspect the search-controller does not hide before the parent window closes and then stays in the VC stack. I don't see any possible workaround so far, except overriding the native back button with an own one which is a no go as well.

Comments

  1. Hans Knöchel 2019-03-18

    cc [~vsingh] as you recently worked on this - maybe you have a quick fix for this!
  2. Vijay Singh 2019-03-19

    [~hknoechel] Can you please give a test case to reproduce this? Thanks!
  3. Hans Knöchel 2019-03-19

    Et voilá:
       
       var window = Ti.UI.createWindow({
           backgroundColor: '#fff'
       });
       
       var btn = Ti.UI.createButton({
           title: 'Open Window'
       });
       
       btn.addEventListener('click', openWindow)
       window.add(btn);
       
       var nav = Ti.UI.createNavigationWindow({ window });
       nav.open();
       
       function openWindow() {
           var win = Ti.UI.createWindow({ title: 'Sub Window' });
           var search = Ti.UI.createSearchBar();
           var listView = Ti.UI.createListView({ searchView: search });
           win.add(listView);
           nav.openWindow(win)
       
           setTimeout(function () {
               search.focus();
               setTimeout(function() {
                   win.close();
               }, 2000);
           }, 2000);
       }
       
    Related: I also noticed that: - showSearchBarInNavBar does not work if you use custom item templates (TIMOB-26913) - showSearchBarInNavBar flickers if focussed on close (TIMOB-26912) Thanks [~vijaysingh]!
  4. Vijay Singh 2019-03-27

    PR(8_0_X)- https://github.com/appcelerator/titanium_mobile/pull/10810 PR(master) - https://github.com/appcelerator/titanium_mobile/pull/10811
  5. Hans Knöchel 2019-03-28

    Thanks for the pull vijay! Testing it in our app today.
  6. Samir Mohammed 2019-03-29

    FR Passed, Waiting on Jenkins.
  7. Samir Mohammed 2019-04-03

    *Closing ticket* Fix verified in SDK Version 8.0.1.v20190402094527 and SDK Version 8.1.0.v20190402113644 Test and other information can be found at: PR(8_0_X)- https://github.com/appcelerator/titanium_mobile/pull/10810 PR(master) - https://github.com/appcelerator/titanium_mobile/pull/10811

JSON Source