Jaishree2310/GlassyUI-Components

[BUG] Duplicate input ID "password" in SignUpCardExample breaks confirm password label focus

開放

#699 建立於 2026年6月5日

 (5 則留言) (0 個反應) (1 位負責人)TypeScript (217 個分叉)auto 404
good first issuegssoc'26gssoc:approvedlevel:beginnertype:bug

倉庫指標

星標
 (114 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

  1. Navigate to the Authentication Card details page.
  2. Click on the "Confirm Password" label.
  3. 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.

貢獻者指南