From 5dc2a8529db09545f24e5d452d4af403fe4f4130 Mon Sep 17 00:00:00 2001 From: Pablo Date: Thu, 25 Apr 2024 12:23:49 +0200 Subject: [PATCH] [ANDROAPP-5757] Field with error can't be disabled Signed-off-by: Pablo --- .../java/org/dhis2/form/extensions/FieldUiModelExtensions.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/form/src/main/java/org/dhis2/form/extensions/FieldUiModelExtensions.kt b/form/src/main/java/org/dhis2/form/extensions/FieldUiModelExtensions.kt index 56a1bc74e9a..e5b4544f3cd 100644 --- a/form/src/main/java/org/dhis2/form/extensions/FieldUiModelExtensions.kt +++ b/form/src/main/java/org/dhis2/form/extensions/FieldUiModelExtensions.kt @@ -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 }