From 08ae048db08c215a06501e410358bae522317cdf Mon Sep 17 00:00:00 2001 From: 18alantom <2.alan.tom@gmail.com> Date: Mon, 8 Nov 2021 17:05:30 +0530 Subject: [PATCH] fix: prevent editing of submitted submitable doctypes from quickform view --- src/components/TwoColumnForm.vue | 40 ++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/src/components/TwoColumnForm.vue b/src/components/TwoColumnForm.vue index dd711d25..b10f2c2e 100644 --- a/src/components/TwoColumnForm.vue +++ b/src/components/TwoColumnForm.vue @@ -8,7 +8,8 @@ size="small" :df="df" :value="doc[df.fieldname]" - @change="value => onChange(df, value)" + :read-only="submitted" + @change="(value) => onChange(df, value)" />