made toggle be on mouse up

This commit is contained in:
Lucas Oliveira 2025-09-24 12:01:43 -03:00
parent 7e3624a0fa
commit f97cd05543

View file

@ -56,7 +56,8 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
<button
type="button"
className="absolute top-1/2 opacity-0 group-hover:opacity-100 hover:text-primary transition-all right-3 transform -translate-y-1/2 text-sm text-muted-foreground"
onClick={handleTogglePassword}
onMouseDown={(e) => e.preventDefault()}
onMouseUp={handleTogglePassword}
>
{showPassword ? (
<Eye className="w-4" />