From d4d17893efa6caed0708c99090e0ca0d7a2ae379 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Fri, 31 May 2024 11:04:03 +0200 Subject: [PATCH] Respect schema readonly on client --- packages/client/src/components/app/forms/InnerForm.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/components/app/forms/InnerForm.svelte b/packages/client/src/components/app/forms/InnerForm.svelte index 55c9c938c3..bb2f51fc95 100644 --- a/packages/client/src/components/app/forms/InnerForm.svelte +++ b/packages/client/src/components/app/forms/InnerForm.svelte @@ -206,7 +206,7 @@ error: initialError, disabled: disabled || fieldDisabled || (isAutoColumn && !editAutoColumns), - readonly: readonly || fieldReadOnly, + readonly: readonly || fieldReadOnly || schema?.[field]?.readonly, defaultValue, validator, lastUpdate: Date.now(),