From 4d58883f0b74a47d5062019bb7eb795dd52e5966 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manu=20Mu=C3=B1oz?= Date: Mon, 16 Oct 2023 07:33:25 +0000 Subject: [PATCH] fix: [ANDROAPP-5550] scrolling over long text (#102) --- .../mobile/ui/designsystem/component/InputLongText.kt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/InputLongText.kt b/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/InputLongText.kt index 0c2d508f8..8c661511c 100644 --- a/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/InputLongText.kt +++ b/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/InputLongText.kt @@ -1,9 +1,6 @@ package org.hisp.dhis.mobile.ui.designsystem.component -import androidx.compose.foundation.gestures.Orientation -import androidx.compose.foundation.gestures.scrollable import androidx.compose.foundation.layout.heightIn -import androidx.compose.foundation.rememberScrollState import androidx.compose.foundation.text.KeyboardOptions import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier @@ -52,10 +49,7 @@ fun InputLongText( onValueChanged = onValueChanged, keyboardOptions = KeyboardOptions(imeAction = imeAction), isSingleLine = false, - modifier = modifier.scrollable( - orientation = Orientation.Vertical, - state = rememberScrollState(), - ).heightIn(Spacing.Spacing0, InternalSizeValues.Size300), + modifier = modifier.heightIn(Spacing.Spacing0, InternalSizeValues.Size300), testTag = "LONG_TEXT", onFocusChanged = onFocusChanged, )