From 9bc393c04417e69e2fa519adcb21c9a5691368df Mon Sep 17 00:00:00 2001 From: Paul Gaucher Date: Mon, 6 May 2024 15:20:55 +0200 Subject: [PATCH] fix: forcer le verrouillage des champs dans InputController --- .../engine/formEngine/components/Input/InputController.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/modules/mon-espace/effectifs/engine/formEngine/components/Input/InputController.tsx b/ui/modules/mon-espace/effectifs/engine/formEngine/components/Input/InputController.tsx index 5741e4c4c..825f049d3 100644 --- a/ui/modules/mon-espace/effectifs/engine/formEngine/components/Input/InputController.tsx +++ b/ui/modules/mon-espace/effectifs/engine/formEngine/components/Input/InputController.tsx @@ -28,7 +28,8 @@ export const InputController = memo(({ name, fieldType, mt, mb, ml, mr, w, onApp fieldType={fieldType ?? "text"} name={name} {...field} - locked={field.locked && Boolean(field.value)} + // locked={field.locked && Boolean(field.value)} + locked={true} value={field.value ?? ""} onChange={handle} isRequired={field.required}