Add default autoComplete for credential fields

This commit is contained in:
Cooldude2606 authored and Daniel committed 2024-11-21 08:25:23 -08:00
1 parent be4c31c10f
commit 06d9d74b67
1 file changed
+1 -1
@@ -44,7 +44,7 @@ function renderInput(inputComponents: Record<string, InputComponent>, def: lib.F
}
if (def.type === "string") {
if (def.credential) {
return <Input.Password autoComplete={def.autoComplete} disabled={readonly} />;
return <Input.Password autoComplete={def.autoComplete ?? "new-password"} disabled={readonly} />;
}
return <Input autoComplete={def.autoComplete} disabled={readonly} />;
}