From bf336ebe10f26f52e0caa0f16bb74689ced9a441 Mon Sep 17 00:00:00 2001 From: axeleron007 Date: Tue, 15 Jun 2021 11:14:15 +0300 Subject: [PATCH] Fix to Single Line disabled input Fix to Single Line disabled input --- .../elsa-single-line-property/elsa-single-line-property.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/designer/elsa-workflows-studio/src/components/editors/properties/elsa-single-line-property/elsa-single-line-property.tsx b/src/designer/elsa-workflows-studio/src/components/editors/properties/elsa-single-line-property/elsa-single-line-property.tsx index 3a8eeaba9..b7421f99e 100644 --- a/src/designer/elsa-workflows-studio/src/components/editors/properties/elsa-single-line-property/elsa-single-line-property.tsx +++ b/src/designer/elsa-workflows-studio/src/components/editors/properties/elsa-single-line-property/elsa-single-line-property.tsx @@ -46,7 +46,11 @@ export class ElsaSingleLineProperty { onDefaultSyntaxValueChanged={e => this.onDefaultSyntaxValueChanged(e)} editor-height="2.75em" single-line={true}> - this.onChange(e)} class="focus:elsa-ring-blue-500 focus:elsa-border-blue-500 elsa-block elsa-w-full elsa-min-w-0 elsa-rounded-md sm:elsa-text-sm elsa-border-gray-300"/> + {readonly ? + + : + this.onChange(e)} class="focus:elsa-ring-blue-500 focus:elsa-border-blue-500 elsa-block elsa-w-full elsa-min-w-0 elsa-rounded-md sm:elsa-text-sm elsa-border-gray-300"/> + } ); }