Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25675] iOS11: Button in navigation-bar remains in pressed state when opening new window (Apple bug)

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2018-02-06T04:32:49.000+0000
Affected Version/sRelease 7.0.1
Fix Version/sRelease 7.0.2
ComponentsiOS
Labelsapplebug
ReporterVijay Singh
AssigneeVijay Singh
Created2018-01-16T08:21:56.000+0000
Updated2018-06-07T23:38:24.000+0000

Description

In following test case, when we click on "Trigger" button a window get pushed in navigation window. When we pop that window , there comes a semi transparent view above"Trigger" button. This problem is not in iOS 10.
var btn = Ti.UI.createButton({
  title: 'Trigger'
});
 
var win = Ti.UI.createWindow({
  rightNavButton: btn
});
 
var nav = Ti.UI.iOS.createNavigationWindow({
  window: win
});
 
btn.addEventListener('click', function() {
  var win2 = Ti.UI.createWindow({
    backgroundColor: 'red'
  });
  
  win2.add(Ti.UI.createListView());
  nav.openWindow(win2);
});
 
win.add(Ti.UI.createListView());
nav.open();

Attachments

FileDateSize
After_push_and_back.png2018-01-17T08:58:13.000+000023077
Before_push.png2018-01-17T08:58:13.000+000023470
NavTest.zip2018-02-05T01:52:43.000+000042991

Comments

  1. Hans Knöchel 2018-01-16

    I cannot reproduce this issue on iOS 11.2 and an iPhone SE. I've made a screenshot of both before and after opening + popping the window and it still looks the same. *EDIT*: Thanks for the screens. It rather looks like the active/pressed state remains although it shouldn't. But still, I could not reproduce it on my end, so hopefully you can isolate it? Maybe kroll vs main-thread or jscore vs ticore?
  2. Vijay Singh 2018-01-17

    [~hknoechel] You are correct :). It's on main thread only. I'll look in this.
  3. Vijay Singh 2018-02-05

    This issue is in native iOS also. It can be seen in attached app "NavTest.zip". The workaround is discussed [here](https://stackoverflow.com/questions/47754472/ios-uinavigationbar-button-remains-faded-after-segue-back).
  4. Vijay Singh 2018-02-05

    PR (master): https://github.com/appcelerator/titanium_mobile/pull/9799 PR (7_0_X): https://github.com/appcelerator/titanium_mobile/pull/9802
  5. Hans Knöchel 2018-02-05

    This is duplicated by AC-5550 as well. Might be a 7.0.2 candidate due to the severity of the glitch.
  6. Vijay Singh 2018-02-05

    Filed a bug to apple - https://openradar.appspot.com/radar?id=5012750401011712
  7. Eric Wieber 2018-02-06

    FR Passed. Navigation bar buttons do not stay grayed out or in depressed state. Tested using the provided samples as well as the navbar suite.
  8. Eric Wieber 2018-02-06

    Verified in SDK builds 7.0.2.v20180205145048 & 7.1.0.v20180205203710
  9. Hans Knöchel 2018-06-07

    The original apple bug has officially been fixed in iOS 12.0. [~vijaysingh] Can you do a PR to adjust your initial PR to only be applied between >= 11.2 and < 12.0?

JSON Source