From f320e25ffd3f3459678d87d76a32844681330d87 Mon Sep 17 00:00:00 2001 From: ddelpiano Date: Tue, 10 Dec 2024 17:13:01 +0100 Subject: [PATCH] disable type dropdown on readonly mode --- frontend/src/components/Forms/StatementForm.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/components/Forms/StatementForm.tsx b/frontend/src/components/Forms/StatementForm.tsx index de9cd833..10c5dd73 100644 --- a/frontend/src/components/Forms/StatementForm.tsx +++ b/frontend/src/components/Forms/StatementForm.tsx @@ -288,6 +288,7 @@ const StatementForm = (props: any) => { type: { "ui:CustomSingleSelect": "CustomSingleSelect", "ui:options": { + isDisabled, label: false, isPathBuilderComponent: true, InputIcon: ViaIcon, @@ -494,6 +495,7 @@ const StatementForm = (props: any) => { type: { "ui:widget": "CustomSingleSelect", "ui:options": { + isDisabled, label: false, isPathBuilderComponent: true, InputIcon: DestinationIcon,