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 bdf6eb79..9885172d 100644 --- a/turbo/src/main/kotlin/dev/hotwire/turbo/nav/TurboNavigator.kt +++ b/turbo/src/main/kotlin/dev/hotwire/turbo/nav/TurboNavigator.kt @@ -95,6 +95,10 @@ internal class TurboNavigator(private val navDestination: TurboNavDestination) { } onNavigationVisit { + if (fragment is DialogFragment) { + fragment.requireDialog().cancel() + } + val controller = currentController() controller.popBackStack(controller.graph.startDestinationId, false) onCleared()