made toggle be on mouse up
This commit is contained in:
parent
7e3624a0fa
commit
f97cd05543
1 changed files with 2 additions and 1 deletions
|
|
@ -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" />
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue