Skip to content

Commit

Permalink
[ANDROAPP-5757] Field with error can't be disabled
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo <[email protected]>
  • Loading branch information
Balcan committed Apr 29, 2024
1 parent e2fb45e commit 5dc2a85
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ fun FieldUiModel.orientation() = when (renderingType) {
}

fun FieldUiModel.inputState() = when {
error != null -> InputShellState.ERROR
!editable -> InputShellState.DISABLED
error != null -> InputShellState.ERROR
focused -> InputShellState.FOCUSED
else -> InputShellState.UNFOCUSED
}
Expand Down

0 comments on commit 5dc2a85

Please sign in to comment.