Skip to content

Commit

Permalink
fix: forcer le verrouillage des champs dans InputController
Browse files Browse the repository at this point in the history
  • Loading branch information
Pomarom committed May 6, 2024
1 parent d9a8e2f commit 9bc393c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 9bc393c

Please sign in to comment.