From 20b36bab6902f7c687b8fc59223724238be6ed0f Mon Sep 17 00:00:00 2001 From: Arkadii Ivanov Date: Tue, 3 Dec 2024 21:44:14 +0000 Subject: [PATCH] Fixed details panel placeholder showing in SINGLE mode --- .../extensions/compose/experimental/panels/ChildPanels.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/extensions-compose-experimental/src/commonMain/kotlin/com/arkivanov/decompose/extensions/compose/experimental/panels/ChildPanels.kt b/extensions-compose-experimental/src/commonMain/kotlin/com/arkivanov/decompose/extensions/compose/experimental/panels/ChildPanels.kt index a96d018d..eb017d97 100644 --- a/extensions-compose-experimental/src/commonMain/kotlin/com/arkivanov/decompose/extensions/compose/experimental/panels/ChildPanels.kt +++ b/extensions-compose-experimental/src/commonMain/kotlin/com/arkivanov/decompose/extensions/compose/experimental/panels/ChildPanels.kt @@ -320,7 +320,12 @@ private fun DetailsPanel( ) { when (val child = it.instance) { is PanelChild.Panel -> content(child.child) - is PanelChild.Empty -> placeholder() + + is PanelChild.Empty -> { + if (it == EmptyChild3) { + placeholder() + } + } } } }