Skip to content

Commit

Permalink
fix: [ANDROAPP-5550] scrolling over long text (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmmateos authored Oct 16, 2023
1 parent 4d4f6e5 commit 4d58883
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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,
)
Expand Down

0 comments on commit 4d58883

Please sign in to comment.