Skip to content

Fix password strength realtime#282

Open
kavin553 wants to merge 2 commits into
mayo-byte07:mainfrom
kavin553:fix-password-strength-realtime
Open

Fix password strength realtime#282
kavin553 wants to merge 2 commits into
mayo-byte07:mainfrom
kavin553:fix-password-strength-realtime

Conversation

@kavin553

Copy link
Copy Markdown

Description

Fixes #199

This PR fixes the password strength indicator not updating consistently during rapid typing on the signup page.

Changes Made

  • Refactored password strength updates into a dedicated "updatePasswordStrength()" function.
  • Added "requestAnimationFrame()" scheduling for smoother and more reliable UI updates.
  • Ensured password strength recalculates during:
    • typing ("input")
    • rapid typing ("keyup")
    • paste actions
    • IME/composition input ("compositionend")
    • value changes ("change")
  • Preserved existing UI, styling, validation logic, and password requirement indicators.
  • Improved responsiveness for backspace, paste, and fast keyboard input scenarios.

Testing

Tested locally by:

  • Typing passwords rapidly
  • Using backspace repeatedly
  • Pasting passwords
  • Verifying strength bars update correctly
  • Verifying requirement indicators update in real time

@vercel

vercel Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

@kavin553 is attempting to deploy a commit to the Mayo's projects Team on Vercel.

A member of the Team first needs to authorize it.

@kavin553

Copy link
Copy Markdown
Author

Hi @mayo-byte07 👋

I've completed the fix for this issue and submitted a PR.

What was fixed

✅ Password strength indicator now updates reliably during rapid typing.

Verified Scenarios

  • Fast keyboard input
  • Backspace/delete actions
  • Paste operations
  • Password requirement validation updates
  • Strength bar updates in real time

The existing UI and styling were preserved while improving the update logic for better responsiveness.

Thank you for reviewing! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Password strength indicator fails to update in real-time

1 participant