Jaishree2310/GlassyUI-Components
View on GitHub[BUG] Duplicate input ID "password" in SignUpCardExample breaks confirm password label focus
Open
#699 opened on Jun 5, 2026
good first issuegssoc'26gssoc:approvedlevel:beginnertype:bug
Repository metrics
- Stars
- (114 stars)
- PR merge metrics
- (PR metrics pending)
Description
Description
In AuthenticationCards.tsx inside the SignUpCardExample component, both the "Password" and "Confirm Password" input fields are defined with the exact same ID (id='password'). Because of this, clicking on the "Confirm Password" label (which has htmlFor='password') focuses the first "Password" field instead of the confirm password field.
Steps to Reproduce
- Navigate to the Authentication Card details page.
- Click on the "Confirm Password" label.
- Observe that focus goes to the "Password" input field.
Suggested Fix
Change the confirm password input's ID to id='confirm-password' and update the label's htmlFor to match.