From c55572b208f0eba8fd29eb01544fb1dd8c91f6e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manu=20Mu=C3=B1oz?= Date: Wed, 4 Dec 2024 17:12:38 +0100 Subject: [PATCH] fix: [ANDROAPP-6549] clear input when click save button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Manu Muñoz --- .../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,