[TIMOB-25675] iOS11: Button in navigation-bar remains in pressed state when opening new window (Apple bug)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-02-06T04:32:49.000+0000 |
Affected Version/s | Release 7.0.1 |
Fix Version/s | Release 7.0.2 |
Components | iOS |
Labels | applebug |
Reporter | Vijay Singh |
Assignee | Vijay Singh |
Created | 2018-01-16T08:21:56.000+0000 |
Updated | 2018-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
File | Date | Size |
---|---|---|
After_push_and_back.png | 2018-01-17T08:58:13.000+0000 | 23077 |
Before_push.png | 2018-01-17T08:58:13.000+0000 | 23470 |
NavTest.zip | 2018-02-05T01:52:43.000+0000 | 42991 |
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?
[~hknoechel] You are correct :). It's on main thread only. I'll look in this.
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).
PR (master): https://github.com/appcelerator/titanium_mobile/pull/9799 PR (7_0_X): https://github.com/appcelerator/titanium_mobile/pull/9802
This is duplicated by AC-5550 as well. Might be a 7.0.2 candidate due to the severity of the glitch.
Filed a bug to apple - https://openradar.appspot.com/radar?id=5012750401011712
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.
Verified in SDK builds 7.0.2.v20180205145048 & 7.1.0.v20180205203710
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?