From 5f20504b158068a22fc66927f5fa318becf53562 Mon Sep 17 00:00:00 2001 From: Sasikanth Miriyampalli Date: Fri, 13 Oct 2023 12:44:36 +0530 Subject: [PATCH] Display input rest button if the input value is not null or blank --- .../hisp/dhis/mobile/ui/designsystem/component/InputDateTime.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/InputDateTime.kt b/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/InputDateTime.kt index 37393bcd8..c52553119 100644 --- a/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/InputDateTime.kt +++ b/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/InputDateTime.kt @@ -81,7 +81,7 @@ fun InputDateTime( ) }, primaryButton = { - if (state != InputShellState.DISABLED) { + if (!value.isNullOrBlank() && state != InputShellState.DISABLED) { IconButton( modifier = Modifier.testTag("INPUT_DATE_TIME_RESET_BUTTON").padding(Spacing.Spacing0), icon = {