Skip to content

Commit

Permalink
If modal is being dismissed then present a new one
Browse files Browse the repository at this point in the history
Fixes an issue where dismissing a modal then presenting a new one right
away could cause the new modal to never be presented.
  • Loading branch information
joemasilotti committed Dec 13, 2023
1 parent 84caebf commit a5bb661
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class TurboNavigationHierarchyController {
delegate.visit(visitable, on: .main, with: proposal.options)
}
case .modal:
if navigationController.presentedViewController != nil {
if navigationController.presentedViewController != nil, !modalNavigationController.isBeingDismissed {
pushOrReplace(on: modalNavigationController, with: controller, via: proposal)
} else {
modalNavigationController.setViewControllers([controller], animated: true)
Expand Down

0 comments on commit a5bb661

Please sign in to comment.