Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 159b3c02 authored by Davor Poznič's avatar Davor Poznič
Browse files

Changed modifier in text input.

parent 77cd55e9
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -30,6 +30,12 @@ fun TextInput(
        contentPadding = contentPadding,
        errorMessage = errorMessage,
    ) {
        val textFieldModifier = if (contentType != null) {
            Modifier.semantics { this.contentType = contentType }
        } else {
            Modifier
        }

        TextFieldOutlined(
            value = text,
            onValueChange = onTextChange,
@@ -38,11 +44,7 @@ fun TextInput(
            isRequired = isRequired,
            hasError = errorMessage != null,
            isSingleLine = isSingleLine,
            modifier = Modifier.fillMaxWidth().semantics {
                if (contentType != null) {
                    this.contentType = contentType
                }
            },
            modifier = textFieldModifier.fillMaxWidth(),
            keyboardOptions = keyboardOptions,
        )
    }