From 749bfe9911b85a2aedbdfd48bc9d3e512007d4e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manu=20Mu=C3=B1oz?= Date: Tue, 10 Dec 2024 14:55:06 +0100 Subject: [PATCH] fix: [ANDROAPP-6549] clear input when click save button (#3920) --- .../main/java/org/dhis2/composetable/ui/DataSetTableScreen.kt | 3 +-- .../android/rtsm/ui/managestock/components/ManageStockTable.kt | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compose-table/src/main/java/org/dhis2/composetable/ui/DataSetTableScreen.kt b/compose-table/src/main/java/org/dhis2/composetable/ui/DataSetTableScreen.kt index 315b7e7b50..d9fd68c221 100644 --- a/compose-table/src/main/java/org/dhis2/composetable/ui/DataSetTableScreen.kt +++ b/compose-table/src/main/java/org/dhis2/composetable/ui/DataSetTableScreen.kt @@ -153,9 +153,8 @@ fun DataSetTableScreen( if (isKeyboardOpen == Keyboard.Closed) { if (tableConfiguration.textInputViewMode) { focusManager.clearFocus(true) - } else if (bottomSheetState.bottomSheetState.isExpanded) { + } else { collapseBottomSheet(true) - bottomSheetState.bottomSheetState.collapse() } } } diff --git a/stock-usecase/src/main/java/org/dhis2/android/rtsm/ui/managestock/components/ManageStockTable.kt b/stock-usecase/src/main/java/org/dhis2/android/rtsm/ui/managestock/components/ManageStockTable.kt index 158d7f3a7f..a5bdaedb3e 100644 --- a/stock-usecase/src/main/java/org/dhis2/android/rtsm/ui/managestock/components/ManageStockTable.kt +++ b/stock-usecase/src/main/java/org/dhis2/android/rtsm/ui/managestock/components/ManageStockTable.kt @@ -146,6 +146,7 @@ fun ManageStockTable( tableDimensions = dimensions, tableConfiguration = TableConfiguration( headerActionsEnabled = false, + textInputViewMode = false, ), tableValidator = viewModel, tableResizeActions = tableResizeActions,