Skip to content

Commit ad621d9

Browse files
authored
fix: prevent PasswordInputField type override (#417)
1 parent 9b20a41 commit ad621d9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

api/api/versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"version": "v1",
55
"status": "active",
6-
"release_date": "2025-09-11T20:17:18.854289411+05:30",
6+
"release_date": "2025-09-16T08:20:28.255146+05:30",
77
"end_of_life": "0001-01-01T00:00:00Z",
88
"changes": [
99
"Initial API version"

view/components/ui/password-input-field.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ export interface PasswordInputFieldProps extends React.ComponentProps<'input'> {
99
}
1010

1111
const PasswordInputField = React.forwardRef<HTMLInputElement, PasswordInputFieldProps>(
12-
function PasswordInputField({ className, containerClassName, ...props }, ref) {
12+
function PasswordInputField({ className, containerClassName, autoComplete, ...props }, ref) {
1313
const [showPassword, setShowPassword] = React.useState(false);
1414

1515
return (
1616
<div className={cn('relative', containerClassName)}>
1717
<Input
1818
ref={ref}
19+
{...props}
1920
type={showPassword ? 'text' : 'password'}
2021
className={cn('pr-10', className)}
21-
autoComplete={props.autoComplete ?? 'current-password'}
22-
{...props}
22+
autoComplete={autoComplete ?? 'current-password'}
2323
/>
2424
<button
2525
type="button"

0 commit comments

Comments
 (0)