Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS: Broken nested NavigationWindow's windows opening. #14100

Open
1 task done
yuranevmer opened this issue Aug 30, 2024 · 4 comments
Open
1 task done

iOS: Broken nested NavigationWindow's windows opening. #14100

yuranevmer opened this issue Aug 30, 2024 · 4 comments
Labels
bug ios needs triage This issue hasn't been reviewed by maintainers

Comments

@yuranevmer
Copy link

I have searched and made sure there are no existing issues for the issue I am filing

  • I have searched the existing issues

Description

navigationWindow.openWindow(window) - doesn't show new window if navigationWindow was opened in another NavigationWindow's.

Expected Behavior

Window opened in nested navigation stack was opened (displayed on the screen).

Actual behavior

Window opened in nested navigation stack was not displayed on the screen.

Reproducible sample

const nestedNavWin = Ti.UI.createNavigationWindow({
    window: Ti.UI.createWindow({ backgroundColor: "yellow" })
});

const mainNavWin = Ti.UI.createNavigationWindow({
	window: Ti.UI.createWindow()
	// but if pass `nestedNavWin` as window in creation time it works
	// window: nestedNavWin
});

mainNavWin.open();

// open nested navigation
_.delay(() => {
	mainNavWin.openWindow(nestedNavWin);
}, 1000);

// window opened by nested navigation doesn't show
_.delay(() => {
	console.log("Must open red window");
	nestedNavWin.openWindow(Ti.UI.createWindow({ backgroundColor: "red" }));
}, 3000);

Steps to reproduce

One NavigationWindow opens another NavigationWindow (using openWindow() method).
Nested NavigationWindow tries to open one more window in stack.

Platform

iOS

SDK version you are using

12

Alloy version you are using

No response

@yuranevmer yuranevmer added bug needs triage This issue hasn't been reviewed by maintainers labels Aug 30, 2024
@yuranevmer
Copy link
Author

yuranevmer commented Aug 30, 2024

Reverting this commit fixes the issue.

@m1ga
Copy link
Contributor

m1ga commented Aug 31, 2024

@hansemannn you might want to check that. Maybe a check if it is a modal window or not and then use the old code or the new one?

@m1ga m1ga added the ios label Aug 31, 2024
@hansemannn
Copy link
Collaborator

Interesting. I will check that in my team after vacation and come back here 🙌

@hansemannn hansemannn reopened this Sep 1, 2024
@hansemannn
Copy link
Collaborator

Hi there! I have reverted the change for now, as it still works on iOS 16+ (maybe it was just a beta issue back then) and also backported it to 12_5_X, so it will be included in the next release already! If you see issues again, please let me know and I can take a closer look into migrating the selectors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ios needs triage This issue hasn't been reviewed by maintainers
Projects
None yet
Development

No branches or pull requests

3 participants