From 7734f0b2845a5b67f2e4a75926d427d705089398 Mon Sep 17 00:00:00 2001 From: Stephen Mitchell Date: Wed, 8 May 2024 16:10:08 -0400 Subject: [PATCH] Update TurboNavigator.kt Do not pop history from stack when opening a modal. --- turbo/src/main/kotlin/dev/hotwire/turbo/nav/TurboNavigator.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/turbo/src/main/kotlin/dev/hotwire/turbo/nav/TurboNavigator.kt b/turbo/src/main/kotlin/dev/hotwire/turbo/nav/TurboNavigator.kt index d3dbd3a1..551794b5 100644 --- a/turbo/src/main/kotlin/dev/hotwire/turbo/nav/TurboNavigator.kt +++ b/turbo/src/main/kotlin/dev/hotwire/turbo/nav/TurboNavigator.kt @@ -147,7 +147,6 @@ internal class TurboNavigator(private val navDestination: TurboNavDestination) { when (rule.newPresentation) { TurboNavPresentation.REPLACE -> onNavigationVisit { - popBackStack(rule) navigateToLocation(rule) } else -> onNavigationVisit {